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 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. 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 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
Archived
This topic is now archived and is closed to further replies.