note 31395 added to function.crypt
| From: | Martin at rack1 dot php dot net | Date: | Sun, 20 Apr 2003 13:41:15 +0000 |
| Subject: | note 31395 added to function.crypt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-46840@lists.php.net to get a copy of this message | ||
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;
--
http://www.php.net/manual/en/function.crypt.php
http://master.php.net/manage/user-notes.php?action=edit+31395
http://master.php.net/manage/user-notes.php?action=delete+31395
http://master.php.net/manage/user-notes.php?action=reject+31395