Mecha CMS

To::dec()

Convert string into their HTML decimal characters representation.

2.0.0Static

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

Example:

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

Result:

$A = 'I ❤ U';