Jump to content

preg_replace() issue


helloise

Recommended Posts

im not sure how to do this: my code used the deprecated ereg_replace like this:

$name = ereg_replace(" ", "", $name);

 

i replaced it with this:

$name = preg_replace(" ", "", $name);  //this is line 65

 

but know get a warning:

Warning: preg_replace(): Empty regular expression on line 65

 

what am i doing wrong please?

thank you

Link to comment
https://forums.phpfreaks.com/topic/230781-preg_replace-issue/
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.