/ Published in: PHP
Beginner PHP Chapter 5 - Arrays
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php $name = 'Sandra James'; $age = 45; $bloodType = 'B+'; $height = 175; $weight = 65; '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. /* That will show you the following: Array( [name] => Sandra James [age] => 45 [bloodType] => B+ [height] => 175 [weight] => 65 ) */ ?>