Wednesday, October 1, 2008

The ord() function

The ord() function returns the ASCII value of the first character of the string.

Syntax: ord(string);

string – the input string

Example input:

echo ord("Hello");

Example output:

72

No comments: