Advertisement
touhid_xml

Loop associative array through foreach loop

Dec 13th, 2014
460
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $city = [ "Dhaka" , "Dinajpur" , "Rangpur"];
  3. foreach($city as $c){
  4. echo "{$c}<br />\n";
  5. }
  6.  ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement