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 - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

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