shadiadiph Posted May 29, 2009 Share Posted May 29, 2009 I have been trying this to replace a forward slash but it isn't working? $pageid = stripslashes($_SERVER['PHP_SELF']); $pattern = '///'; $newpageid = preg_replace($pattern,'', $pageid); Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted May 29, 2009 Share Posted May 29, 2009 $pageid = stripslashes($_SERVER['PHP_SELF']); $pattern = '/\//'; $newpageid = preg_replace($pattern,'', $pageid); Quote Link to comment Share on other sites More sharing options...
shadiadiph Posted May 29, 2009 Author Share Posted May 29, 2009 thank you so much that was confusing me 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.