perezf Posted September 7, 2006 Share Posted September 7, 2006 why doesnt this work i get an error, Im trying to learn so can some one help ???[code]<?php$RatesArray = array(".0725", ".0750", ".0775", ".0800", ".0825", ".0850", ".0875")echo "$RatesArray[0]<br />";echo "$RatesArray[4]<br />";?>[/code] Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted September 7, 2006 Share Posted September 7, 2006 You are mising a semi-colon on line 2. Line 2 should be this:$RatesArray = array(".0725", ".0750", ".0775", ".0800", ".0825", ".0850", ".0875")[b][color=red];[/color][/b] <-- This is missing Quote Link to comment Share on other sites More sharing options...
perezf Posted September 7, 2006 Author Share Posted September 7, 2006 [quote]Parse error: parse error, unexpected T_ECHO in /hsphere/local/home/way2fr3s/2fr3sh.com/PHPLearning/array.php on line 11[/quote] Quote Link to comment Share on other sites More sharing options...
perezf Posted September 7, 2006 Author Share Posted September 7, 2006 Thank you the problem is fixed now Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.