1<?php
2
3namespace Mpdf\Conversion;
4
5use Mpdf\Utils\UtfString;
6
7class DecToCjk
8{
9
10	public function convert($num)
11	{
12		$nstr = (string) $num;
13		$rnum = '';
14		$glyphs = [0x3007, 0x4E00, 0x4E8C, 0x4E09, 0x56DB, 0x4E94, 0x516D, 0x4E03, 0x516B, 0x4E5D];
15		$len = strlen($nstr);
16		for ($i = 0; $i < $len; $i++) {
17			$rnum .= UtfString::code2utf($glyphs[(int) $nstr[$i]]);
18		}
19		return $rnum;
20	}
21
22}
23