RE: [PHP] Array find a element

From: Date: Wed, 05 Feb 2003 08:52:36 +0000
Subject: RE: [PHP] Array find a element
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-134384@lists.php.net to get a copy of this message
You can use in_array (http://www.php.net/function.in_array) for this. -- Mattias --|-----Original Message----- --|From: Narciso Miguel Rodrigues --|[mailto:narcisorodrigues@intermeios.com] --|Sent: Wednesday, February 05, 2003 02:03 --|To: php-general@lists.php.net --|Subject: [PHP] Array find a element --| --| --|Is possible to do something like --| --| if ($username in $users) ... or i need to do a foreach($user){...} --| --|Thks --| --|[MsR] --| --| --|-- --|PHP General Mailing List (http://www.php.net/) --|To unsubscribe, visit: http://www.php.net/unsub.php --| --|

« previous php.general (#134384) next »