Dear friends,help me please,i have a php array,how would i display table out of it,something went wrong :
<?php
$data = array(
array ( "Hartsfield Jackson Atlanta International","Atlanta" , "ATL" ),
array ( "Chicago O'Hare International", " Chicago", " ORD" ),
array ("Los Angeles International", " Los Angeles", " LAX" ),
array ( "Dallas Fort Worth International", " Dallas-Fort Worth", " DFW" ),
array (" Denver International", " Denver", " DEN" ),
array ( "John F Kennedy International", " New York", " JFK" ),
array ( "San Francisco International", " San Francisco", " SFO" ),
array ("Charlotte Douglas International", " Charlotte"," CLT" ),
array (" McCarran International", " Las Vegas"," LAS "),
array ("Phoenix Sky Harbor International", " Phoenix", " PHX" ),
);
echo "<table>
echo <tr><th>Airport</th><th>City</th><th>Code</th></tr>";
for ($row = 0; $row <10; $row++) {
echo"<tr>";
for ($col = 0; $col < 10; $col++) {
echo"<td>".$data[$row][$col]."</td>";
}
echo "</tr>\n";
}
echo "</table>";
?>