how can i convert this into an array?
if someone searches for “lo” he gets the text “no query”, but how can i do this for more words? i tried it with array(‘1′,’2’)..
if ($query == 'lo')
{
exit ('No Query.');
}
i want something like this
if ($query == 'lo', 'mip', 'get')
{
exit ('No Query.');
}
so, if someone types mip he gets the message..
thank you!!
Or if you might want to add many strings to check for, try using an array.
Then adding new ‘bad words’ is as easy as adding them to the array.