ThinkPHP/Library/Vendor/Smarty/pluginsshared.mb_unicode.php

Smarty shared plugin

Functions

smarty_mb_to_unicode()

smarty_mb_to_unicode(string  $string, string  $encoding = null) : array

convert characters to their decimal unicode equivalents

Parameters

string $string

characters to calculate unicode of

string $encoding

encoding of $string, if null mb_internal_encoding() is used

Returns

array —

sequence of unicodes

smarty_mb_from_unicode()

smarty_mb_from_unicode(integer|array  $unicode, string  $encoding = null) : string

convert unicodes to the character of given encoding

Parameters

integer|array $unicode

single unicode or list of unicodes to convert

string $encoding

encoding of returned string, if null mb_internal_encoding() is used

Returns

string —

unicode as character sequence in given $encoding