note 104616 added to function.array-search
| From: | Anonymous at osu1 dot php dot net | Date: | Sun, 26 Jun 2011 07:27:47 +0000 |
| Subject: | note 104616 added to function.array-search | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-180957@lists.php.net to get a copy of this message | ||
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>
}
----
Server IP: 81.88.49.24
Probable Submitter: 93.48.97.221
----
Manual Page -- http://www.php.net/manual/en/function.array-search.php
Edit -- https://master.php.net/note/edit/104616
Del: integrated -- https://master.php.net/note/delete/104616/integrated
Del: useless -- https://master.php.net/note/delete/104616/useless
Del: bad code -- https://master.php.net/note/delete/104616/bad+code
Del: spam -- https://master.php.net/note/delete/104616/spam
Del: non-english -- https://master.php.net/note/delete/104616/non-english
Del: in docs -- https://master.php.net/note/delete/104616/in+docs
Del: other reasons-- https://master.php.net/note/delete/104616
Reject -- https://master.php.net/note/reject/104616
Search -- https://master.php.net/manage/user-notes.php