i want to change English Number to Dari (Persian) number, i have this code it gives me an error
atal error: Call to undefined function af_nubmer() in D:\wamp\www\...
here is my code and i am using HTML special characters.
function af_nubers($number){
$AF = array(
'۰',
"۱",
"۲",
"۳",
"۴",
"۵",
"۶",
"۷",
"۸",
"۹"
);
$US = array(
"0",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
);
return preg_replace($AF,$US);
}
or if I am going to wrong way please redirect me to right way
Thanks in advance
Edit:
the $AF array contain these characters without slashes
'\&\#\1776;',
"\&\#\1777;",
"\&\#\1778;",
"\&\#\1779;",
"\&\#\1780;",
"\&\#\1781;",
"\&\#\1782;",
"\&\#\1783;",
"\&\#\1784;",
"\&\#\1785;"
This post has been edited by noorahmad: 05 October 2009 - 05:21 AM

New Topic/Question
Reply



MultiQuote






|