charat

(FW >= 1.0)

charat - return ASCII code for character in string at index

Description

number charat( string str, int index )
Return the ASCII code of the character in string at index

Parameters

str

string to get character from

index

index into string

Return Value

number - value of ASCII character

Examples

<? 

$str="Test String";
$s = charat($str,5);
print ($s); // result is 83
?>