private static function utf8ToHexSequence( $str ) {
		$buf = '';
		foreach ( preg_split( '//u', $str, -1, PREG_SPLIT_NO_EMPTY ) as $cp ) {
			$buf .= sprintf( '%04x ', self::utf8ToCodepoint( $cp ) );
		}

		return rtrim( $buf );
	}
private static function utf8ToHexSequence( $str ) {
		$buf = '';
		foreach ( preg_split( '//u', $str, -1, PREG_SPLIT_NO_EMPTY ) as $cp ) {
			$buf .= sprintf( '%04x ', self::utf8ToCodepoint( $cp ) );
		}

		return rtrim( $buf );
	}
private static function utf8ToHexSequence ( $ str ) { $ buf = '' ; foreach ( preg_split ( '//u' , $ str , - 1 , PREG_SPLIT_NO_EMPTY ) as $ cp ) { $ buf .= sprintf ( '%04x ' , self :: utf8ToCodepoint ( $ cp ) ) ; } return rtrim ( $ buf ) ; }
Take a UTF-8 string and return a space-separated series of hex
numbers representing Unicode code points. For debugging.

@param string $str UTF-8 string.
@return string
@private
Take a UTF - 8 string and return a space - separated series of hex numbers representing Unicode code points . For debugging .