1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
--TEST-- errmsg: arrays are not allowed in class constants --FILE-- <?php class test { const TEST = array(1,2,3); } var_dump(test::TEST); echo "Done\n"; ?> --EXPECT-- array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) } Done