helloise Posted March 16, 2011 Share Posted March 16, 2011 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 More sharing options...
sasa Posted March 16, 2011 Share Posted March 16, 2011 $name = preg_replace("/ /", "", $name); but for this i use str_replace() function Link to comment https://forums.phpfreaks.com/topic/230781-preg_replace-issue/#findComment-1188070 Share on other sites More sharing options...
helloise Posted March 16, 2011 Author Share Posted March 16, 2011 thanks so much! Link to comment https://forums.phpfreaks.com/topic/230781-preg_replace-issue/#findComment-1188091 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.