<?php
$array1 = array(
'type' => 1
'values' => array(
'name' => 'Ingo Petent',
'city' => 'Fooheim',
'age' => 45,
),
);
$array2 = array(
'type' => 1
'values' => array(
'name' => 'Ingo Petent',
'city' => 'Fooheim',
'age' => 45,
),
);
var_dump(array_merge_recursive($array1, $array2));
- Output for 5.4.0 - 5.4.18
- Parse error: syntax error, unexpected ''values'' (T_CONSTANT_ENCAPSED_STRING), expecting ')' in /in/rYYdu on line 5
Process exited with code 255. - Output for 5.3.0 - 5.3.27
- Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /in/rYYdu on line 5
Process exited with code 255.
preferences:
178.84 ms | 1395 KiB | 54 Q