Return to Snippet

Revision: 59470
at September 9, 2012 22:01 by ashmenon


Initial Code
<?php

echo $patient1['name']; //This will display the string 'Sandra James'.
echo $patient1['visits'][0]; //This will still display 'Array', because the returned value is an array.
echo $patient1['visits'][1]['time']; //This will display the string '2.15PM'.

?>

Initial URL


Initial Description
Beginner PHP Chapter 5 - Arrays

Initial Title
Beginner PHP Chapter 5 - Arrays - Code Block 13

Initial Tags


Initial Language
PHP