Advertisement
touhid_xml

PHP Array baci

Feb 9th, 2014
385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. //simple Array
  3. $city = array('Dhaka','Rangpur','Chittagong','Sylhet','Barishal','Khulna','Rajshahi');
  4.  
  5. // simple array with key
  6. $bio  =  array('name'=>'Touhid','address'=>'Dinajpur, Bangladesh','job'=>'Programmer','email'=>'touhid@rafusoft.com','mobile'=>'01765997954','male'=>true);
  7.  
  8. echo $city[0];
  9. echo "<br />\n";
  10. echo $city[1];
  11. echo "<br />\n";
  12. echo $city[2];
  13. echo "<br />\n";
  14. echo $city[3];
  15. echo "<br />\n";
  16. echo $city[4];
  17. echo "<br />\n";
  18. echo $city[5];
  19. echo "<br />\n";
  20. echo $city[6];
  21. echo "<br />\n";
  22. ?>
  23.  
  24. <h2>Touhid's Bio</h2>
  25. <?php
  26. echo $bio['name'];
  27. echo "<br />\n";
  28. echo $bio['address'];
  29. echo "<br />\n";
  30. echo $bio['job'];
  31. echo "<br />\n";
  32. echo $bio['email'];
  33. echo "<br />\n";
  34. echo $bio['mobile'];
  35.  
  36.  
  37.  
  38. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement