Check for "/me" in input using PHP -


i making little comment system, , have /me command (/me likes bananas). how can scan $input /me , put "likes bananas" separate variable?

you can use strpos method : http://php.net/manual/en/function.strpos.php

if (strpos($input,'/me') !== false) {     //code } 

Comments