TECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 16, 2002 12:54 AM
Subject: [PHP] Seeing if a value matches anything in an array
> I'm trying to build some sort of AI chat bot in php (yes, I know I'm crazy).
> To do this, I need some way to check for the presence o
I'm trying to build some sort of AI chat bot in php (yes, I know I'm crazy).
To do this, I need some way to check for the presence of any value from an
array. Example:
$pharray = array("php","the best language ever");
if($question == "What is ".anything_in_array_function($phparray)."?"){
print "
2 matches
Mail list logo