note 18457 rejected from function.strstr by irc-html

From: Date: Wed, 23 Jan 2002 20:00:40 +0000
Subject: note 18457 rejected from function.strstr by irc-html
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-25756@lists.php.net to get a copy of this message
if i wanted the string to check on 2 variables then come out with and outcome if they didnt exist how wud i do so? this is what ive done so far: <?php if(strstr($name,"Richard Daw")) { ?> <center><b>Your welcome to come any time!</b></center> <? } else { ?> <center><b>Your not welcome here boyo!</b></center> <? } ?> You understand? So if i wanted it to check on 2 names e.g. Richard Daw and Matt to make it come out with "your welcome here" and if anyone else say "your not welcome here" Thanks

« previous php.notes (#25756) next »