public static function to_unicode($s)
	{
		if (! ReflectionTypeHint::isValid()) return false;
		if (is_null($s)) return $s;

		$s2 = null;
		#since PHP-5.3.x iconv() little faster then mb_convert_encoding()
		if (function_exists('iconv')) $s2 = @iconv('UTF-8', 'UCS-4BE', $s);
		elseif (function_exists('mb_convert_encoding')) $s2 = @mb_convert_encoding($s, 'UCS-4BE', 'UTF-8');
		if (is_string($s2)) return array_values(unpack('N*', $s2));
		if ($s2 !== null) return false;

		$a = self::str_split($s);
		if ($a === false) return false;
		return array_map(array(__CLASS__, 'ord'), $a);
	}
public static function to_unicode($s)
	{
		if (! ReflectionTypeHint::isValid()) return false;
		if (is_null($s)) return $s;

		$s2 = null;
		#since PHP-5.3.x iconv() little faster then mb_convert_encoding()
		if (function_exists('iconv')) $s2 = @iconv('UTF-8', 'UCS-4BE', $s);
		elseif (function_exists('mb_convert_encoding')) $s2 = @mb_convert_encoding($s, 'UCS-4BE', 'UTF-8');
		if (is_string($s2)) return array_values(unpack('N*', $s2));
		if ($s2 !== null) return false;

		$a = self::str_split($s);
		if ($a === false) return false;
		return array_map(array(__CLASS__, 'ord'), $a);
	}
public static function to_unicode ( $ s ) { if ( ! ReflectionTypeHint :: isValid ( ) ) return false ; if ( is_null ( $ s ) ) return $ s ; $ s2 = null ; #since PHP-5.3.x iconv() little faster then mb_convert_encoding()
 if ( function_exists ( 'iconv' ) ) $ s2 = @ iconv ( 'UTF-8' , 'UCS-4BE' , $ s ) ; elseif ( function_exists ( 'mb_convert_encoding' ) ) $ s2 = @ mb_convert_encoding ( $ s , 'UCS-4BE' , 'UTF-8' ) ; if ( is_string ( $ s2 ) ) return array_values ( unpack ( 'N*' , $ s2 ) ) ; if ( $ s2 !== null ) return false ; $ a = self :: str_split ( $ s ) ; if ( $ a === false ) return false ; return array_map ( array ( __CLASS__ , 'ord' ) , $ a ) ; }
Converts a UTF-8 string to a UNICODE codepoints

@param   string|null     $s  UTF-8 string
@return  array|bool|null     Unicode codepoints
Returns FALSE if $s broken (not UTF-8)
Converts a UTF - 8 string to a UNICODE codepoints