Showing posts with label ASCII. Show all posts
Showing posts with label ASCII. Show all posts

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