ord

ord

(PHP 4, PHP 5, PHP 7)

ordReturn ASCII value of character

Description

int ord ( string $string )

Returns the ASCII value of the first character of string.

This function complements chr().

Parameters

string

A character.