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 ? Link to comment https://forums.phpfreaks.com/topic/86882-solved-any-char/ 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); Link to comment https://forums.phpfreaks.com/topic/86882-solved-any-char/#findComment-444325 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.