<?php
$names = array("John","Harry","Sam","Jake","Frank","Robert","Henry","Al");
$td = 1;
echo "<table border='1' cellpadding='10' cellspacing='10'>";
echo "<tr>";
foreach($names AS $value)
{
do{
echo "<td>".$value."</td>";
$td++;
}while{
$td <=4;
}
echo "</tr>";
}
?>
- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.27
- Parse error: syntax error, unexpected '{', expecting '(' in /in/cLuH8 on line 12
Process exited with code 255.
preferences:
201.52 ms | 1395 KiB | 64 Q