I am brand new to PHP, but I am trying to learn from an online tutorial. I'm using this one:
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<br>\n"; print "$AcmeInventory<br>\n"; print "$AcmeInventory<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?