Re: If in an array

From: Date: Thu, 14 Dec 2000 19:34:37 +0000
Subject: Re: If in an array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-30348@lists.php.net to get a copy of this message
Check out : http://www.php.net/manual/function.in-array.php Philip --.sig Disclaimers : My code may not be perfectly efficient but it gets the job done. "Learn through experience." On Thu, 14 Dec 2000, Brandon Orther wrote: > Is there a way to check the value of a string against anything in an array > without using the do loop? > > Like: > If ($variable == $array(anything in array)) { > $variable2 = "Yes it worked"; > } > > Thank you, > > -------------------------------------------- > Brandon Orther > WebIntellects Design/Development Manager > brandon@webintellects.com > 800-994-6364 > www.webintellects.com > -------------------------------------------- > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#30348) next »