/ Published in: PHP
Beginner PHP Chapter 5 - Arrays
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php //First let's combine the visits together. /* That will display like this: Array( [0] => Array( [date] => 11/12/09 [time] => 11.02AM ) [1] => Array( [date] => 13/01/10 [time] => 2.15PM ) [2] => Array( [date] => 16/01/10 [time] => 10.57AM ) ) */ //And then we add this value to the patient variable. $patient1['visits'] = $visits; ?>