Hi dears.
Mr.Tavakkolian was helping me until my function completed.
This function converts utf8(digit) to integer.
function search_index_array($str)
 global $farsi_table;
 for ($i=0;$i<11;$i++) 
  if ($farsi_table[$i]==$str ) 
   return $i; 
 return FALSE;
}// end of search_index_array
function utf8_to_int($str)
 for ($i=0;$i<$len;$i++)
   if (search_index_array($char[$i])!=False)
  }//end of for ($i)
 return $out; 
}//end of utf8_to_int
When i call utf8_to_int("&#1776;"."&#1785;") ,this return 09 ,But When i enter a 
number(utf8) via keyboard,This function return 0.
Please guide me that i how enter a number via keyboard(persian) & i get true answer.

Thank you for choosing LinuxQuestions.
FarsiWeb mailing list

Reply via email to