![]() Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips System : Linux server1.richineiserver.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : fdshops ( 1003) PHP Version : 8.2.21 Disable Function : NONE Directory : /home/fdshops/public_html/vendor/mpdf/mpdf/src/Conversion/ |
<?php namespace Mpdf\Conversion; use Mpdf\Utils\UtfString; class DecToCjk { public function convert($num) { $nstr = (string) $num; $rnum = ''; $glyphs = [0x3007, 0x4E00, 0x4E8C, 0x4E09, 0x56DB, 0x4E94, 0x516D, 0x4E03, 0x516B, 0x4E5D]; $len = strlen($nstr); for ($i = 0; $i < $len; $i++) { $rnum .= UtfString::code2utf($glyphs[(int) $nstr[$i]]); } return $rnum; } }