Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

random_char()

Description

Utility function to generate a random UTF8 character

Parameters

This function accepts no parameters.

Return

string

Location

include/migration_functions.php lines 275 to 280

Definition

 
function random_char()
    {
    
$hex_code dechex(mt_rand(195202));    
    
$hex_code .= dechex(mt_rand(128175));
    return 
pack('H*'$hex_code);
    }

This article was last updated 24th November 2020 20:05 Europe/London time based on the source file dated 23rd November 2020 10:40 Europe/London time.