note 31395 deleted from function.crypt by aidan
| From: | aidan@php.net | Date: | Mon, 05 Jul 2004 10:28:41 +0000 |
| Subject: | note 31395 deleted from function.crypt by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-72591@lists.php.net to get a copy of this message | ||
Note Submitter: Martin F.
----
Instead of
$array = explode(':',$line);
$user = $array[0];
$password = chop($array[1]);
$passwords[$user] = $password;
as shown above you could use this nice short code:
list($user,$password) = explode(':',chop($line));
$passwords[$user] = $password;