Array Question
| From: | kvigor | Date: | Wed, 11 Jul 2007 06:41:17 +0000 |
| Subject: | Array Question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-258594@lists.php.net to get a copy of this message | ||
Is there a php function similar to in_array that can detect if a "partial
value" is in an array value or not:
e.g.
$var1 = " big horse"; $var2 = " small yellow"; $var3 = " red
hydrant";
$theArray = array(big blue horse, small yellow bird, giant red hydrant);
Is there a way to find out if $var1 in $theArray or $var2 etc.?