Mecha CMS

To::hex()

Convert string into their HTML hexagonal characters representation.

2.0.0Static

To::hex(string $in, $z = false, array $f = ['&#x', ';']);

Example:

$A = To::hex('I ❤ U');

Result:

$A = 'I ❤ U';