ord(3) php man page | unix.com

Man Page: ord

Operating Environment: php

Section: 3

ORD(3)									 1								    ORD(3)

ord - Return ASCII value of character

SYNOPSIS
int ord (string $string)
DESCRIPTION
Returns the ASCII value of the first character of $string. This function complements chr(3).
PARAMETERS
o $string - A character.
RETURN VALUES
Returns the ASCII value as an integer.
EXAMPLES
Example #1 ord(3) example <?php $str = " "; if (ord($str) == 10) { echo "The first character of $str is a line feed. "; } ?>
SEE ALSO
chr(3), An ASCII-table. PHP Documentation Group ORD(3)
Related Man Pages
bytes(3pm) - osx
ltrim(3) - php
mb_strtolower(3) - php
mb_detect_encoding(3) - php
mb_strtoupper(3) - php
Similar Topics in the Unix Linux Community
How to put a word starting at particular position in a file using shell scripting
Record of Manual Backup of forum DB (linode update)
Script to change password in UNIX
awk to change value in field according to another
UNIX.com is getting crushed in google search these days