public static function createMultipleFromLogin($login, $type, $key = 0)
    {
        $passwords = array();
        $number    = count($login);
        $save      = $number;

        while ($number > 0) {
            while (true) {
                $password = self::createFromLogin($login[$save - $number], $type, $key);
                if (!in_array($password, $passwords)) {
                    $passwords[] = $password;
                    break;
                }
            }
            $number--;
        }
        return $passwords;
    }
public static function createMultipleFromLogin($login, $type, $key = 0)
    {
        $passwords = array();
        $number    = count($login);
        $save      = $number;

        while ($number > 0) {
            while (true) {
                $password = self::createFromLogin($login[$save - $number], $type, $key);
                if (!in_array($password, $passwords)) {
                    $passwords[] = $password;
                    break;
                }
            }
            $number--;
        }
        return $passwords;
    }
public static function createMultipleFromLogin ( $ login , $ type , $ key = 0 ) { $ passwords = array ( ) ; $ number = count ( $ login ) ; $ save = $ number ; while ( $ number > 0 ) { while ( true ) { $ password = self :: createFromLogin ( $ login [ $ save - $ number ] , $ type , $ key ) ; if ( ! in_array ( $ password , $ passwords ) ) { $ passwords [ ] = $ password ; break ; } } $ number -- ; } return $ passwords ; }
Create multiple, different passwords from an array of login

Method to create a list of different password from login

@param  array   Login
@param  string  Type
@param  integer Key
@return array   Array containing the passwords
Create multiple different passwords from an array of login