Un elePHPant dans le code
<?php
// decimal version
echo mb_chr(128024);
// hexadecimal version
echo "\u{01f418}";
Quand on a besoin d’un elePHPant dans un texte, PHP en a toujours un sous la main : enfin, un éléphant, du moins.
Le code unicode pour un éléphant est 128024 ou 0x1F418. Il peut être utilisé directement dans une chaîne, ou avec la fonction mb_chr(), et non avec la fonction chr, qui ne gère qu’un seul octet.
See Also
PHP Features
Last updated: 18 September 2026