Forum Moderators: coopster
if($test != "word"){
but what i want to do is use the same code to check that $test does not equal more than one words like word1 word2 word3 etc.
any ideas?
thanks
$wordlist = array('word1', 'word2', 'word3');if (in_array($test, $wordlist)) {...
ie if 'word' is one of 'word1', 'word2', 'word3' ...
untested. Does that sound like what you want?
if (!in_array($test, $wordlist)) {