<?php
$dogs= [
['name'=>'jippy','age'=>12 ,'address'=>'bhaktapur', size=>[
'weight'=>52, heght =.5'2]];
['name'=>'jipu','age'=>2 ,'address'=>'pur', size=>[
'weight'=>52, heght =.5'2]];
}
foreach($dogs as $key=> $item);
echo $key .' '. $item['name'];
- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
- Parse error: syntax error, unexpected '=', expecting ']' in /in/LO6T0 on line 4
Process exited with code 255.
preferences:
170.99 ms | 1395 KiB | 36 Q