EchoFool Posted January 17, 2010 Share Posted January 17, 2010 Hey, Is there away to check a php string so it knows if it starts like this: /Me stuff stuff stuff And if it does start with /Me return true? Also without it being case sensitive? If so how would you do it ? Quote Link to comment https://forums.phpfreaks.com/topic/188820-string-checker/ Share on other sites More sharing options...
Alex Posted January 17, 2010 Share Posted January 17, 2010 if(strtolower(substr($string, 0, 3)) == '/me') { // ... } Quote Link to comment https://forums.phpfreaks.com/topic/188820-string-checker/#findComment-996848 Share on other sites More sharing options...
EchoFool Posted January 17, 2010 Author Share Posted January 17, 2010 Hah - how embarrisingly easy that turned out to be! Was expecting a massive script xD Thanks Quote Link to comment https://forums.phpfreaks.com/topic/188820-string-checker/#findComment-996850 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.