Summery Summery
Converts a unicode codepoint to a UTF-8 character
Syntax Syntax
Parameters Parameters
- $codepoint
-
(Required) Unicode codepoint
Return Return
(string) UTF-8 character
Source Source
File: wp-includes/SimplePie/Misc.php
$tokens = array();
while ($position < $string_length)
{
$len = strcspn($string, $space_characters, $position);
$tokens[] = substr($string, $position, $len);
$position += $len;
$position += strspn($string, $space_characters, $position);
}
return $tokens;
}
/**
* Converts a unicode codepoint to a UTF-8 character
*
* @static
* @param int $codepoint Unicode codepoint
* @return string UTF-8 character
*/
public static function codepoint_to_utf8($codepoint)
{
$codepoint = (int) $codepoint;
if ($codepoint < 0)
{
return false;
}
else if ($codepoint <= 0x7f)
{