pack

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Pack data into binary string
<?php pack(string $format, mixed ...$values): string
<?php                             }



                            return str_repeat('\\', $l - 1) . mb_convert_encoding(

                                pack('H*', $match[2]),

                                'UTF-8',

                                'UCS-2BE'

                            );