1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
--TEST-- SPL: FixedArray: var_dump --FILE-- <?php $a = new SplFixedArray(2); $a[0] = "foo"; var_dump(empty($a[0]), empty($a[1]), $a); ?> --EXPECTF-- bool(false) bool(true) object(SplFixedArray)#%d (2) { [0]=> string(3) "foo" [1]=> NULL }