advanced code snippet search
ashmenon on 09/09/12
09/09/12 10:01pm
Beginner PHP Chapter 5 - Arrays
<?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'. ?>
Report this snippet Tweet
Comment:
You need to login to post a comment.