[php]<?php
if(strstr($_POST[‘textbox1’],‘hit’))
{
function1();
}
elseif(strstr($_POST[‘textbox1’],‘your’))
{
function2();
}
else
{
echo “Error in log.”;
}[/php]
If i type in “Your friend is a hitman”. I want function2 to be called, not function1. Is there anyway i can do that?
Also is there any php function to search for a separate word(not a phrase) inside a string?