If you want the ascii value of a single character then you can use the ord/chr string function pair to go back and forth from ascii (EBCIDIC maybe? ??) values to characters and back.
print ord("a");
will print the number 97, while
print chr(97);
will print an a.
since you can use array syntax to grab a piece of a string, you can get the ascii value of a char in a particular position by doing this:
$a="abcdef";
print ord($a[2]);
will print 99, the ascii value of "c".
print ord($string[5]);