looping over PHP array -



looping over PHP array -

i not php dev. working google api , backend using php. working illustration returns locations within distance of given zipcode. result set returned php of next format..

array ( [0] => array ( [id] => 554 [postcode] => 1225 [suburb] => royal exchange [aus_post_name] => royal exchange [state] => nsw [lat] => -33.864393 [lon] => 151.209608 ) [1] => array ( [id] => 559 [postcode] => 1230 [suburb] => queen victoria building [aus_post_name] => queen victoria building [state] => nsw [lat] => -33.872049 [lon] => 151.206428 ) [2] => array ( [id] => 714 [postcode] => 2000 [suburb] => barangaroo [aus_post_name] => barangaroo [state] => nsw [lat] => -33.858315 [lon] => 151.203519 ) [3] => array ( [id] => 715 [postcode] => 2000 [suburb] => dawes point [aus_post_name] => dawes point [state] => nsw [lat] => -33.855601 [lon] => 151.20822 )

how loop on result set, , values, illustration state , suburb?

use for loop or foreach loop:

foreach ($bigarray $row) { echo $row['suburb']; // suburb echo $row['state']; // state }

php

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -