<?php mb_ord(string $string, ?string $encoding = null): int|false
<?php $chars = preg_split('//u', $emoji, null, PREG_SPLIT_NO_EMPTY); $codepoints = array_map( fn (string $code): string => dechex(mb_ord($code)), $chars );