PHP functions: Master the applications of ord () and chr () functions. The third part of the Chinese character encoding Study Series, the PHP function section, master the application of the ord () and chr () functions, in the previous [PHP Basics],
Chinese character encoding Research series phase III, PHP function Chapter Master ord () and Chr () function application, in the previous period [PHP Basics of ASCII code comparison and character conversion] in the article to understand the ASCII
The ord () function converts a character to a decimal number, and the chr () function converts a decimal number to a character. in binary, octal, the relationship between decimal and hexadecimal forms serves as a bridge between Chinese character
The ord () function converts a character to a decimal number, and the chr () function converts a decimal number to a character. in binary, octal, the relationship between decimal and hexadecimal forms serves as a bridge between Chinese character
The third part of the Chinese character encoding Study Series, the PHP function section, master the application of the ord () and chr () functions, in the previous [PHP Basics], I learned about ASCII code and character conversion methods, but two
The third part of the Chinese character encoding Study Series, the PHP function section, master the application of the ord () and chr () functions, in the previous [PHP Basics], I learned about ASCII code and character conversion methods, but two
The functions of these two functions are exactly the opposite of the CHR function, which returns characters from the specified ASCII value and the Ord () function returns the ASCII value of the first character of the string. Understand that this
PHP ord () functions the PHP string function defines and uses the Ord () function to return the ASCII value of the first character of a string. The syntax ord (string) parameter describes the string required. The string from which to get the ASCII
Ord
(PHP 4, PHP 5, PHP 7)
Ord-return ASCII value of character
Ord-the ASCII value of the returned character
Descriptionord($string)//Returns the ASCII value of the first character of string.//返回字符串 string 第一个字符的
Phppark, unpark, ord function usage (binary stream interface application instance ). The three functions park, unpark, and ord are not used much in our work. In my recent work, binary stream is used for communication, and the interface is received
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.