/**
  * Create a single password.
  *
  * @access public
  * @param  integer Length of the password.
  * @param  string  Type of password (pronounceable, unpronounceable)
  * @param  string  Character which could be use in the
  *                 unpronounceable password ex : 'ABCDEFG'
  *                 or numeric, alphabetical or alphanumeric.
  * @return string  Returns the generated password.
  */
 public static function create($length = 10, $type = 'pronounceable', $chars = '')
 {
     switch ($type) {
         case 'unpronounceable':
             return Text_Password::_createUnpronounceable($length, $chars);
         case 'pronounceable':
         default:
             return Text_Password::_createPronounceable($length);
     }
 }
 /**
  * Create a single password.
  *
  * @access public
  * @param  integer Length of the password.
  * @param  string  Type of password (pronounceable, unpronounceable)
  * @param  string  Character which could be use in the
  *                 unpronounceable password ex : 'ABCDEFG'
  *                 or numeric, alphabetical or alphanumeric.
  * @return string  Returns the generated password.
  */
 public static function create($length = 10, $type = Text_Password::PASSWORD_TYPE_PRONOUNCEABLE, $chars = '')
 {
     switch ($type) {
         case Text_Password::PASSWORD_TYPE_UNPRONOUNCEABLE:
             return Text_Password::_createUnpronounceable($length, $chars);
         case Text_Password::PASSWORD_TYPE_PRONOUNCEABLE:
         default:
             return Text_Password::_createPronounceable($length);
     }
 }
 /**
  * Create a single password.
  *
  * @access public
  * @param  integer Length of the password.
  * @param  string  Type of password (pronounceable, unpronounceable)
  * @param  string  Character which could be use in the
  *                 unpronounceable password ex : 'A,B,C,D,E,F,G'
  *                 or numeric or alphanumeric.
  * @return string  Returns the generated password.
  */
 function create($length = 10, $type = 'pronounceable', $chars = '')
 {
     mt_srand((double) microtime() * 1000000);
     switch ($type) {
         case 'unpronounceable':
             return Text_Password::_createUnpronounceable($length, $chars);
         case 'pronounceable':
         default:
             return Text_Password::_createPronounceable($length);
     }
 }