php man page for ord

Query: ord

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

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(3perl) - debian
bytes(3pm) - osx
ucwords(3) - php
addcslashes(3) - php
mb_strtoupper(3) - php
Similar Topics in the Unix Linux Community
Problem while changing the password in solaris 10
How to put a word starting at particular position in a file using shell scripting
Choose a single word from a wordlist by matching the letters it contains?
Masking Password with *'s
How to insert gaussian noise to a data with an order with awk?