|
|
|
#2 (permalink) |
|
Messages: n/a
Hébergeur: |
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 |
|
![]() |
| Outils de la discussion | |
|
|