Simple PHP Array Problem - IF EXIT

Posted by elmas on Stack Overflow See other posts from Stack Overflow or by elmas
Published on 2010-03-13T17:35:40Z Indexed on 2010/03/13 17:45 UTC
Read the original article Hit count: 247

Filed under:
|
|

Hi, 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!!

© Stack Overflow or respective owner

Related posts about php

Related posts about array