Suchy Posted January 20, 2008 Share Posted January 20, 2008 $id = ereg_replace ("?st=/" . $anything ."/" , "", $id_temp); where $anything is basicly any characters ex. cat?st=4 --> cat or dog?st=d224sggd&$Efds#@>4 --> dog How can I do this ? Quote Link to comment Share on other sites More sharing options...
Suchy Posted January 20, 2008 Author Share Posted January 20, 2008 Got it $pattern = "[?]st=[0-9a-zA-Z[:punct:]]*" ; $id = ereg_replace ($pattern , "", $id_temp); 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.