<?php
$oldArray = array(
array("country", "state", "city", "name"),
array("Argentina", "Corrientes", "Corrientes", "Jorge"),
array("Argentina", "Chaco", "Resistencia", "Mariano")
);
$arr[] = array_shift($oldArray);
$new_arr = array_map('array_combine',&$arr,$oldArray);
print_r($new_arr);
- Output for 7.0.0
- Parse error: syntax error, unexpected '&' in /in/RkJXd on line 9
Process exited with code 255. - Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16
- Fatal error: Call-time pass-by-reference has been removed in /in/RkJXd on line 9
Process exited with code 255.
preferences:
161.23 ms | 1399 KiB | 24 Q