Beginner PHP Chapter 5 - Arrays - Code Block 12


/ Published in: PHP
Save to your folder(s)

Beginner PHP Chapter 5 - Arrays


Copy this code and paste it in your HTML
  1. <?php
  2.  
  3. print_r($patient1);
  4.  
  5. /* That will show you the following:
  6.  
  7. Array(
  8. [name] => Sandra James
  9. [age] => 45
  10. [bloodType] => B+
  11. [height] => 175
  12. [weight] => 62
  13. [visits] => Array(
  14. [0] => Array(
  15. [date] => 11/12/09
  16. [time] => 11.02AM
  17. )
  18. [1] => Array(
  19. [date] => 13/01/10
  20. [time] => 2.15PM
  21. )
  22. [2] => Array(
  23. [date] => 16/01/10
  24. [time] => 10.57AM
  25. )
  26. )
  27. )
  28.  
  29. */
  30.  
  31.  
  32. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.