A list of numbers using an array variable : array « Data Structure « PHP
- PHP
- Data Structure
- array
A list of numbers using an array variable
<?php
$Inventory = array(1,2,3);
print "$Inventory[0]<br>\n";
print "$Inventory[1]<br>\n";
print "$Inventory[2]<br>\n";
print "<p>An array variable!";
?>
Related examples in the same category