public static function uchr( $codes ) {

		// Single character code.
		if ( \is_scalar( $codes ) ) {
			$codes = \func_get_args(); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
		}

		// Deal with an array of character codes.
		$json = '"';
		foreach ( $codes as $code ) {
			$json .= \sprintf( '\u%04x', $code );
		}
		$json .= '"';

		return \json_decode( $json );
	}
public static function uchr( $codes ) {

		// Single character code.
		if ( \is_scalar( $codes ) ) {
			$codes = \func_get_args(); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
		}

		// Deal with an array of character codes.
		$json = '"';
		foreach ( $codes as $code ) {
			$json .= \sprintf( '\u%04x', $code );
		}
		$json .= '"';

		return \json_decode( $json );
	}
public static function uchr ( $ codes ) { // Single character code. if ( \ is_scalar ( $ codes ) ) { $ codes = \ func_get_args ( ) ; // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection } // Deal with an array of character codes. $ json = '"' ; foreach ( $ codes as $ code ) { $ json .= \ sprintf ( '\u%04x' , $ code ) ; } $ json .= '"' ; return \ json_decode ( $ json ) ; }
Converts decimal value to unicode character.

@param int|string|array $codes Decimal value(s) coresponding to unicode character(s).

@return string Unicode character(s).
Converts decimal value to unicode character .