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

java - Incorrect order of records in M-M relationship in hibernate -

ruby - Net::HTTP extremely slow responses for HTTPS requests -

c++ - Boost Spirit Parser with a vector of three strings compiling into a struct, adapt not working -