Unicode Comments¶
By Aken Roberts
<?php
#️⃣️ This is a comment
echo 'No syntax errors here!';
?>
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¶
Unicode comment [Try me]
PHP Features¶
Last updated: 14 July 2026