public static function getPassword($length = 8)
	{
		$password = "";

		for ($i = 0; $i < $length; $i++) {
			$password .= self::getSymbol(mt_rand(0, 2));
		}

		return $password;
	}
public static function getPassword($length = 8)
	{
		$password = "";

		for ($i = 0; $i < $length; $i++) {
			$password .= self::getSymbol(mt_rand(0, 2));
		}

		return $password;
	}
public static function getPassword ( $ length = 8 ) { $ password = "" ; for ( $ i = 0 ; $ i < $ length ; $ i ++ ) { $ password .= self :: getSymbol ( mt_rand ( 0 , 2 ) ) ; } return $ password ; }
Returns random string

@param int $length
@return string
Returns random string