Hi,
As I mentioned in my original posting, I am not a PHP programmer; But,
it seems that for keyboard input functions you WILL have to convert
UTF-8 to HTML encoding if you want to use your function; for example
by calling a function like htmlentities() or utf8_decode() before
calling utf8_to_int
function utf8_to_true ($s) {
return true;
}
be
On Sun, 7 Sep 2003, Mohsen Pahlevanzadeh wrote:
> Hi dears.
> Mr.Tavakkolian was helping me until my function completed.
> This function converts utf8(digit) to integer.
> $farsi_table_linux=array("NONE",
> "۰",
>
The online document below has the information you need.
http://us4.php.net/manual/en/function.utf8-encode.php
The only thing that the code segment you sent seems to do is use
the (int) cast to convert a string to an integer. It first tries
to match the strings '۰' through '۹' against the
input s