RE: [PHP] array search

From: Date: Fri, 31 Aug 2001 20:49:25 +0000
Subject: RE: [PHP] array search
Groups: php.general 
Request: Send a blank email to php-general+get-65553@lists.php.net to get a copy of this message
What about going the other way? Say I have a sentence... "Hi, my name is Bob." ...and I want to search the sentence for one of the values (people) in the array... $people = array("Jim","John","JP","Bob"); Can this be done? Thanks, Joseph -----Original Message----- yes, in_array($person, $people)! however, you may take a look into the manual.

« previous php.general (#65553) next »