Posted by iktorn on 06/11/07 15:34
Peter napisał(a):
> Hi,
>
> I'd like to get the actual BYTE value of an ASCII character.
>
> For instance:
> $Test = "ABC";
> $TestIntValue = Function($Test[0]);
>
> What function would I need to use to get a value of 65 in $TestIntValue ?
>
>
Ord is what you're looking for:
http://pl2.php.net/manual/en/function.ord.php
--
Wiktor Walc
http://phpfreelancer.net
Navigation:
[Reply to this message]
|