<?php
$a=array("a"=>1,"b"=>1,"c"=>1,"e"=>1);
$b=array("a"=>5,"b"=>6,"c"=>7,"e"=>8);
print_r(array_pad(array(), 5, 0))
print_r(array_combine(array_keys($a),array_values($b)));
- Output for 5.4.0 - 5.4.27
- Parse error: syntax error, unexpected 'print_r' (T_STRING) in /in/60vBr on line 6
Process exited with code 255. - Output for 5.3.0 - 5.3.28
- Parse error: syntax error, unexpected T_STRING in /in/60vBr on line 6
Process exited with code 255.
preferences:
193.18 ms | 1395 KiB | 64 Q