- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
- Parse error: syntax error, unexpected 'var_dump' (T_STRING) in /in/fiDIN on line 17
Process exited with code 255.
<?php
$array = [];
$a = ['itemListElement' =>
['@type' => 'ListItem', 'position' => '1', 'item' => ['name' => 'testName1']]];
$b = ['itemListElement' =>
['@type' => 'ListItem', 'position' => '2', 'item' => ['name' => 'testName2']]];
array_push($array, $a);
var_dump($array);
array_push($array, $b)
var_dump($array);