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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -