How can I convert Persian/Arabic numbers to English numbers with a simple function ?
Persian/Arabic numbers:
? // -> 0
? // -> 1
? // -> 2
? // -> 3
? // -> 4
? // -> 5
? // -> 6
? // -> 7
? // -> 8
? // -> 9
numbers over the unicode :
$num0="۰";
$num1="۱";
$num2="۲";
$num3="۳";
$num4="۴";
$num5="۵";
$num6="۶";
$num7="۷";
$num8="۸";
$num9="۹";
See Question&Answers more detail:os