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 characterSYNOPSISint ord (string $string)DESCRIPTIONReturns the ASCII value of the first character of $string. This function complements chr(3).PARAMETERSo $string - A character.RETURN VALUESReturns the ASCII value as an integer.EXAMPLESExample #1 ord(3) example <?php $str = " "; if (ord($str) == 10) { echo "The first character of $str is a line feed. "; } ?>SEE ALSOchr(3), An ASCII-table. PHP Documentation Group ORD(3)
Related Man Pages |
---|
bytes(3pm) - centos |
bytes(3pm) - osx |
mb_convert_encoding(3) - php |
mb_detect_encoding(3) - php |
rtrim(3) - php |