--TEST-- array_pad() tests --FILE-- getMessage() . "\n"; } ?> --EXPECT-- array(1) { [0]=> int(0) } array(0) { } array(1) { [0]=> int(0) } array(5) { [0]=> string(0) "" [1]=> int(-1) [2]=> float(2) [3]=> int(0) [4]=> int(0) } array(5) { [0]=> string(0) "" [1]=> int(-1) [2]=> float(2) [3]=> array(0) { } [4]=> array(0) { } } array(3) { [0]=> string(0) "" [1]=> int(-1) [2]=> float(2) } array(3) { [0]=> string(0) "" [1]=> int(-1) [2]=> float(2) } array(4) { [0]=> array(0) { } [1]=> string(0) "" [2]=> int(-1) [3]=> float(2) } You may only pad up to 1048576 elements at a time