fork download
  1. <?php
  2. $tableRows[0]=array("id"=>1,"distance"=>8);
  3. $tableRows[1]=array("id"=>2,"distance"=>5);
  4. $tableRows[2]=array("id"=>3,"distance"=>7);
  5. $counter=0;
  6. foreach($tableRows as $tableRow)
  7. {
  8. foreach($tableRows as $tableRow)
  9. {
  10. echo $tableRow["distance"]."\t";
  11. }
  12. echo "\n";
  13. }
  14. // your code goes here
Success #stdin #stdout 0.02s 24400KB
stdin
Standard input is empty
stdout
8	5	7	
8	5	7	
8	5	7