Unicode Comments

By Aken Roberts

../_images/unicode_comments.png

Besides //, #, /** */ and /* */, there is another way to make a comment in PHP: unicode #️⃣️ . This is possible as this unicode character is build on top of 3 codepoints: among those, the first one is #, which is an actual comment character. Then, PHP parses it as a single bytes, and interprets it as a comment: the rest of the line is omitted.

See Also

PHP Features