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 -

command line - Use qwinsta in PowerShell ISE -

php - I want to create a website for polls/survey like this http://www.poll-maker.com/ -