<?php
$cars=array("Dodge"=>array("Avenger","Challenger","Charger","Dart"),"Toyota"=>array("Highlander","Tundra","Corolla"),"Nissan"=>array("Sentra","Altima","Maxima"));
echo "Make: Toyota"; echo "<br><br>";
$first = TRUE;
$cars = '';
foreach($cars['Toyota'] as $x){
if ($first){
$cars .= $x;
}else{
$cars = ", $x";
}
echo $cars;
?>
- Output for 5.4.0 - 5.4.19, 5.5.0 - 5.5.3
- Parse error: syntax error, unexpected end of file in /in/IvuZK on line 15
Process exited with code 255. - Output for 5.3.0 - 5.3.27
- Parse error: syntax error, unexpected $end in /in/IvuZK on line 15
Process exited with code 255.
preferences:
190.96 ms | 1395 KiB | 59 Q