/ 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; $patient1 = array($name,$age,$bloodType, $height, $weight); //This creates an array with Sandra's name, age, and blood type. /* That will show you the following: Array( [0] => Sandra James [1] => 45 [2] => B+ [3] => 175 [4] => 65 ) */ ?>
Comments
