Showing posts with label ASCII functions in PHP. Show all posts
Showing posts with label ASCII functions in PHP. 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