Hello. I'm currently learning PHP from a book, and I'm on the "Arrays" section. However, I keep getting errors when I try to run the following PHP:
$products = array("Toys", "Electronics", "Books"
echo "$products";
All I want to do is put 'Toys', 'Electronics', and 'Books' into an array and then print it out. But I keep getting the following error:
Parse error: parse error, unexpected T_VARIABLE in /home/ray/public_html/phpfiles/array.php on line 75
Line 75 is referring to the top line.
Can anybody help?
--REI
$products = array("Toys", "Electronics", "Books"
echo "$products";
All I want to do is put 'Toys', 'Electronics', and 'Books' into an array and then print it out. But I keep getting the following error:
Parse error: parse error, unexpected T_VARIABLE in /home/ray/public_html/phpfiles/array.php on line 75
Line 75 is referring to the top line.
Can anybody help?
--REI