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