RE: [PHP] Array find a element

2003-02-05 Thread mattias
You can use in_array (http://www.php.net/function.in_array) for this. -- Mattias --|-Original Message- --|From: Narciso Miguel Rodrigues --|[mailto:[EMAIL PROTECTED]] --|Sent: Wednesday, February 05, 2003 02:03 --|To: [EMAIL PROTECTED] --|Subject: [PHP] Array find a element --| --| --

RE: [PHP] Array find a element

2003-02-04 Thread John W. Holmes
> Is possible to do something like > > if ($username in $users) ... or i need to do a foreach($user){...} www.php.net/in_array www.php.net/array_search ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP Genera