1.2.1258. Unicode Escape Syntax

Usage of the Unicode Escape syntax, with the \u{xxxxx} format, available since PHP 7.0.

<?php

// Produce an elephant icon in PHP 7.0+
echo "\u{1F418}";

// Produce the raw sequence in PHP 5.0
echo "\u{1F418}";

?>

See also PHP RFC: Unicode Codepoint Escape Syntax, Code point and Unicode.

1.2.1258.1. Specs

Short name

Php/UnicodeEscapeSyntax

Rulesets

All, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56

Exakat since

0.8.4

PHP Version

With PHP 7.0 and more recent

Severity

Major

Time To Fix

Slow (1 hour)

Precision

High

Features

unicode, escape-sequence

Available in

Entreprise Edition, Exakat Cloud