Advertisement
GabLeRoux

array

Jul 23rd, 2013
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <title>Hello</title>
  5. </head>
  6. <body>
  7.  
  8. </body>
  9. </html>
  10. <h1>Hello World</h1>
  11.  
  12. <?php
  13.  
  14. $myArr = array(
  15. "name" => array("1st", "2nd", "3rd"),
  16. "message" => array("hi", "this is awesome", "is it?"),
  17. "page_num" => array(1, 2, 3)
  18. );
  19.  
  20. echo "<pre>";
  21. print_r($myArr);
  22. echo "</pre>";
  23.  
  24. print $myArr["name"][1];
  25.  
  26. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement