string_charcode [function]

string_charcode( string str, int offset = 0 )

returns the byte value / ASCII character code of the specified byte in the string

string_charcode( "Test" ); // int 84
string_charcode( "Test", 3 ); // int 116