there is a function for converting English standard nums to Persian (Farsi) or Arabic nums:
function farsinum($str){
if (strlen($str) == 1){
$str = "0".$str;
$out = "";
for ($i = 0; $i < strlen($str); ++$i) {
$c = substr($str, $i, 1);
$out .= pack("C*", 0xDB, 0xB0 + $c);
}
}
return $out;
}
But this function produce 01 02 03 ... instead of 1 2 3 ... I think something must be change here:
$out .= pack("C*", 0xDB, 0xB0 + $c);
Any help appreciated.