.Ben
-
Posts
3 -
Joined
-
Last visited
Never
Posts posted by .Ben
-
-
I'm 13, Male, and learning PHP. Pretty good so far .
-
Hello,
I realized that you have made a mistake on the PHP code on the Arrays lesson. http://www.phpfreaks.com/tutorials/42/1.php
On this code example:
<?php $bakery = array( "cherry" => "5.00", "apple" => "4.00", "other" => "2.00", ); echo "cherry pie costs $bakery['cherry'], apple pie costs $bakery['apple'], and that other pie costs $bakery['other']."; ?>
Correction:
<?php $bakery = array( "cherry" => "5.00", "apple" => "4.00", "other" => "2.00", ); echo "cherry pie costs ".$bakery['cherry'].", apple pie costs ".$bakery['apple'].", and that other pie costs ".$bakery['other']."."; ?>
Self Taught Or Educated In PHP
in Miscellaneous
Posted