jmichael68 Posted October 24, 2006 Share Posted October 24, 2006 $string is a variable returned from an array$string = ')Football'; $numer12 = ''; $new = str_replace(")",$numer12,$string); echo"$new";gives me this errorParse error: syntax error, unexpected T_STRING in /webroot/s/u/supfr001/ssl/functions.php on line 895Any Ideas???? Quote Link to comment Share on other sites More sharing options...
Stooney Posted October 25, 2006 Share Posted October 25, 2006 well first off:[code]$numer12 = '';[/code]should be:[code]$numer12=""; //assuming you want to remove the ( completely[/code]basically you have to close any quotation marks you start before the semi-colon. 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.