marmite Posted May 1, 2007 Share Posted May 1, 2007 Hi, I just want to return true if '*' or ';' is found in an input string (so I can weed out malicious users) can someone tell me which function is best?? strstr, strlen... i'm trawling through millions! Thanks Quote Link to comment https://forums.phpfreaks.com/topic/49443-solved-superquick-seeking-string-function/ Share on other sites More sharing options...
Ninjakreborn Posted May 1, 2007 Share Posted May 1, 2007 strpos would probably be the most accurate, out of the standard mysql functions for trying to see if a needle is present within a haystack. Quote Link to comment https://forums.phpfreaks.com/topic/49443-solved-superquick-seeking-string-function/#findComment-242303 Share on other sites More sharing options...
marmite Posted May 1, 2007 Author Share Posted May 1, 2007 thanks that works a treat Quote Link to comment https://forums.phpfreaks.com/topic/49443-solved-superquick-seeking-string-function/#findComment-242304 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.