★ wanayoo — archive 1999 http://il.php.net/manual/function.ord.php3Nouvelle recherche | Portail wanayoo

PHP3 Home Page

Manual Table of Contents
Up to Strings
Quick Reference
Strings
* AddSlashes
* bin2hex
* Chop
* Chr
* chunk_split
* convert_cyr_string
* crypt
* echo
* explode
* flush
* get_meta_tags
* htmlspecialchars
* htmlentities
* implode
* join
* ltrim
* md5
* nl2br
* Ord
* parse_str
* print
* printf
* quoted_printable_decode
* QuoteMeta
* rawurldecode
* rawurlencode
* setlocale
* similar_text
* soundex
* sprintf
* strchr
* strcmp
* strcspn
* strip_tags
* StripSlashes
* strlen
* strrpos
* strpos
* strrchr
* strrev
* strspn
* strstr
* strtok
* strtolower
* strtoupper
* str_replace
* strtr
* substr
* trim
* ucfirst
* ucwords
Manual: Ord
View the source code for this pageSearch the site



Previous page
 nl2br
parse_str 
Next page


Ord

Ord -- return ASCII value of character

Description

int ord(string string);

Returns the ASCII value of the first character of string. This function complements chr().

Example 1. ord() example

if (ord($str) == 10) {
    echo("The first character of \$str is a line feed.\n");
}

See also chr().


 About Notes


Previous page
 nl2br
parse_str 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
Israel
Some elements of this website are subject to copyright.