note 104616 deleted from function.array-search by danbrown

From: Date: Sun, 26 Jun 2011 15:59:22 +0000
Subject: note 104616 deleted from function.array-search by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-180964@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- usage of array_search for searching in two arrays (with usernames and passwords) $find_user_key = array_search($user, $user_vector); if( $find_user_key && (sha1($password_vector[$find_user_key]) == $pwd_sha1)){ <code> }

« previous php.notes (#180964) next »