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] Link to comment https://forums.phpfreaks.com/topic/20006-simple-array-question/ 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 Link to comment https://forums.phpfreaks.com/topic/20006-simple-array-question/#findComment-87684 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] Link to comment https://forums.phpfreaks.com/topic/20006-simple-array-question/#findComment-87686 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 Link to comment https://forums.phpfreaks.com/topic/20006-simple-array-question/#findComment-87688 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.