src/Utils/CommonUtil.php
public static function random($len = 6)
    {
        $chars  = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
        $random = '';
        for ($p = 0; $p < $len; $p++) {
            $random .= $chars[mt_rand(0, 61)];
        }

        return $random;
    }
public static function random($len = 6)
    {
        $chars  = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
        $random = '';
        for ($p = 0; $p < $len; $p++) {
            $random .= $chars[mt_rand(0, 61)];
        }

        return $random;
    }
public static function random ( $ len = 6 ) { $ chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' ; $ random = '' ; for ( $ p = 0 ; $ p < $ len ; $ p ++ ) { $ random .= $ chars [ mt_rand ( 0 , 61 ) ] ; } return $ random ; }
Get random string
@param  integer $len
@return string
Get random string