You can use
$temp = ord("A");
And you will then see that it's 65 end not 99 :-)
- Frank
> Is there any function in PHP that I could use to know the number of the
> ASCII table of letter "A" for example?
>
>
> something like: $tmp=function_name("A");
>
> $tmp==99 ("A" is 99 in ASCII table).
"Augusto Cesar Castoldi" <[EMAIL PROTECTED]> wrote:
> Is there any function in PHP that I could use to know the number of the
> ASCII table of letter "A" for example?
It's chr() or ord(). I don't recall which (one is the inverse of the other)
so check the online manual.
--
Steve Werby
President
Is there any function in PHP that I could use to know the number of the
ASCII table of letter "A" for example?
something like: $tmp=function_name("A");
$tmp==99 ("A" is 99 in ASCII table).
regards,
Augusto
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PRO
3 matches
Mail list logo