Jump to content

Replacing Parenthesis using ereg_replace


jmichael68

Recommended Posts

$string is a variable returned from an array

$string = ')Football';
  $numer12 = '';
 
  $new = str_replace(")",$numer12,$string);
 
  echo"$new";

gives me this error
Parse error: syntax error, unexpected T_STRING in /webroot/s/u/supfr001/ssl/functions.php on line 895

Any Ideas????

Link to comment
https://forums.phpfreaks.com/topic/25001-replacing-parenthesis-using-ereg_replace/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.