ext/crypt_code.php
/**
     * Generate English letter codes
     *
     * @return array
     */
Generate English letter codes
@return array
Generate English letter codes @return array
private static function gen_word(): array
    {
        $result = [];
        $list = range('A', 'Z');
        for ($i = 0; $i < self::$count; ++$i) $result['char'][] = $list[mt_rand(0, 25)];
        $result['code'] = implode($result['char']);
        unset($i);
        return $result;
    }
private static function gen_word ( ) : array { $ result = [ ] ; $ list = range ( 'A' , 'Z' ) ; for ( $ i = 0 ; $ i < self :: $ count ; ++ $ i ) $ result [ 'char' ] [ ] = $ list [ mt_rand ( 0 , 25 ) ] ; $ result [ 'code' ] = implode ( $ result [ 'char' ] ) ; unset ( $ i ) ; return $ result ; }
Generate English letter codes
 @return array
Generate English letter codes @return array