Re: [PHP] Seeing if a value matches anything in an array

2002-04-16 Thread Andrey Hristov
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

[PHP] Seeing if a value matches anything in an array

2002-04-15 Thread Leif K-Brooks
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 "