An Elephpant In The Code¶
<?php
// decimal version
echo mb_chr(128024);
// hexadecimal version
echo "\u{01f418}";
When there is a need an elePHPant in a text, PHP always have one ready: well, an elephant, at least.
The unicode for an elephant is 128024 or 0x1F418. It may be used directly inside a string, or with the mb_chr() function, and not with the chr function, which is only handling a single byte.
See Also¶
Two ways to the elephpant [Try me]
PHP Features¶
Last updated: 14 July 2026