Hi folks,
I am brand new to PHP, but I am trying to learn from an online tutorial. I'm using this one:
http://inpics.net/tutorials/php/variables24.html
I'm sure there are many others, but that's where I'm at now. I am on the variables section, and they present this code:
<?php
# This script demonstrates how to
# create a numeric array.
@AcmeInventory = (178,286,387);
print "$AcmeInventory[0]<br>\n";
print "$AcmeInventory[1]<br>\n";
print "$AcmeInventory[2]<br>\n";
print "<p>We just created a list of numbers using an array variable!";
?>
The problem is when I run this, I get this error:
Parse error: syntax error, unexpected '=' in /home/content/m/b/i/mbirame/html/PHPscripts/numberlist.php on line 7
I have PHP5 running on my server...have things changed in 5 to make me need different code for the variables?
Thank you!
Joel