<?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 ''2]];' (T_CONSTANT_ENCAPSED_STRING), expecting ']' in /in/YNqCa on line 5
Process exited with code 255.
preferences:
169.67 ms | 1395 KiB | 36 Q