Revision: 59464
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 9, 2012 21:48 by ashmenon
Initial Code
<?php $name = 'Sandra James'; $age = 45; $bloodType = 'B+'; $height = 175; $weight = 65; $patient1 = array( 'name' => $name, 'age' => $age, 'bloodType' => $bloodType, 'height' => $height, 'weight' => $weight ); //You can do that in a single line like shown previously, I just broke it into multiple lines to make it easier to see. print_r($patient1); /* That will show you the following: Array( [name] => Sandra James [age] => 45 [bloodType] => B+ [height] => 175 [weight] => 65 ) */ ?>
Initial URL
Initial Description
Beginner PHP Chapter 5 - Arrays
Initial Title
Beginner PHP Chapter 5 - Arrays - Code Block 7
Initial Tags
Initial Language
PHP