For example: $str = "How does PHP divide 322 of the alphanumeric characters in the string into SF f45d and Chinese _?" "; Divide by number or letter.
Copy Code code as follows:
$str = "How does PHP divide the alphanumeric f45d and Chinese
Sequence Types
There are six types of sequence: strings, byte sequences (bytes objects), byte arrays (ByteArray objects), list, tuple, Range objects.
Common operations supported by sequence types:Member check: in, not inConnection: +Copy:
Pattern matching function
The most powerful functions in the string library are:
Copy Code code as follows:
String.find (String lookup)
String.gsub (Global string substitution)
String.gfind (Global string lookup)
String.gmatch (
Generally, the entire string is used as the operation object, for example: search for a substring in a substring, obtain a substring, insert a substring at a certain position in the substring, and delete a substring. The required and sufficient
String functionsIn developing T-SQL, it is often necessary to perform a variety of operations on strings, and the following describes commonly used string functions. 1. ASCII ASCII code to get charactersThe ASCII code is the standard encoding of
Grammar
String strings can be defined in three ways
"(single quote)" "(double quotation mark)
The escape sequence can be interpreted as \ \ \
The biggest feature of double quotes is that variable names are replaced by variable values
Delimiter
In Python, the string corresponds to the object str, and the string is an immutable sequence that uses Unicode encoding.Construct a stringA string can use the following syntax:1) Single quote: ' Allows embedded ' double ' quotes '2) Double quotes:
Generally, the entire string is used as the operation object, for example: search for a substring in a substring, obtain a substring, insert a substring at a certain position in the substring, and delete a substring. The required and sufficient
Regular | string
No matter what type of application you create, you need to use a string. Regardless of how the data is stored, end users always have to deal with readable text. So, knowing how to use strings is any. NET developers need to learn the
String definition string (string) the characters in PHP are the same as those in bytes. it has a syntax of 256 characters.
String can be defined in three methods
''(Single quotes)" "(double quotes)
Escape sequences can be interpreted \
The biggest
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.