In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
Most people do not understand the knowledge points of this article "php how to convert character an into numbers", so the editor summarizes the following contents, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "php how to convert character an into numbers" article.
Php character an into a number of methods: 1, the use of boolval () function, syntax "boolval ('a')", the character a can be converted into a number of 2, use ord () function, syntax "ord ('a')", will return the character an in the form of integers ASCII value, that is, the character an into the number 97.
Operating environment of this tutorial: windows7 system, PHP7.1 version, DELL G3 computer
Php converts the character a to a number
1. Use the boolval () function
The boolval () function converts a variable to a Boolean type, which has only two values, true (corresponding to the number 1) and false (corresponding to the number 0).
2. Use the ord () function
The ord () function returns the ASCII value of the first character in the string, or the ASCII value of a single character.
The return value is the ASCII value as an integer.
Description:
ASCII ((American Standard Code for Information Interchange): American Standard Code for Information Interchange) is a computer coding system based on the Latin alphabet, mainly used to display modern English and other Western European languages. It is the most general information exchange standard and is equivalent to the international standard ISO/IEC 646. ASCII was first published as a specification standard in 1967 and last updated in 1986, with a total of 128 characters defined so far.
Control characters: LF (line feed), CR (carriage return), FF (page feed), DEL (delete), BS (backspace), BEL (ring), etc.; communication characters: SOH (header), EOT (tail), ACK (confirmation), etc.; ASCII values of 8, 9, 10 and 13 are converted to backspace, tabulation, line feed and carriage return characters, respectively. They do not have a specific graphical display, but will have different effects on text display depending on different applications.
32 '126 (95 total) are characters (32 are spaces), of which 48' 57 is 0 to 9 ten Arabic numerals.
65'90 is 26 capital letters, 97 '122 is 26 lowercase letters, and the rest are punctuation marks, arithmetic symbols and so on.
The above is about the content of this article on "how php converts character an into numbers". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.