What is a string operator? String operator introduction: a string operator is used to concatenate two strings to form a new string. We have introduced the arithmetic operators in PHP operators in the previous sections. I believe you have some knowledge about the "arithmetic operators" in PHP operators. today, we will introduce in detail the "string operator" in the PHP operator ". In PHP, we provide two types of string operators: the first one is the concatenation operator, which uses ". it is used to connect two strings to form... what is a string operator? String operator introduction: a string operator is used to concatenate two strings to form a new string. We have introduced the arithmetic operators in PHP operators in the previous sections. I believe you have some knowledge about the "arithmetic operators" in PHP operators. today, we will introduce in detail the "string operator" in the PHP operator ". In PHP, we provide two types of string operators: the first one is the concatenation operator, which uses ". it connects two strings to form a new string. Type 2: value assignment join operator, which uses ". = "indicates the combination of" string operator "and" value assignment operator "in the PHP operator. for the value assignment concatenation operator, we will explain it in detail in the following sections. Therefore, we can also say that there is only one string operator, that is, the first "string concatenation operator", represented. PS: In PHP, "+" is only used as an arithmetic operator and cannot be used as a string operator. in the following example, we will compare the differences between the two. String
1. PHP operator (2) "string operator"
Introduction: Java operators: operators in Java operators in php, control structure: operators in php 1. assignment operator 2. arithmetic operators 3. comparison operator 4. string operator 5. increment operator 6. logical operators (exclusive or operations xor) 7. ternary operators 8. bitwise operators (shift operations) 10. in echo, ',' and '. 'difference 9. type conversion 1 ). boolean value -- string 2 ). string -- number conversion 3 ). string -- Boolean value conversion 4 ). numeric-Boolean value conversion 5 ). number-string conversion control
8. concepts related to operators in php _ PHP Tutorial
Introduction: concepts related to operators learned in php. The code is as follows :? Php/* operator number (PHP) operator symbol ** by operator number function divided into: * 1. arithmetic operator +-*/% + + -- * 2. string operator. join operation
9. php connector. parameter delimiter, description _ PHP Tutorial
Description: php connector. and parameter delimiter. In PHP, there is only one string operator, and the concatenation operator (.) is used to connect two string values. To connect two variables together, use the dot operator (.):
10. PHP4 User Manual: Operator-string operator _ PHP Tutorial
Introduction: PHP4 User Manual: Operator-string operator. A string operator has two character string operators. The first is the concatenation operator (.), which returns the new string generated after connecting the right and left. The second is the self-join operator (. =), which is
[Related Q & A recommendations ]:
Php-how to compare string operators?
The above is a summary of the usage of the string operator instance in php. For more information, see other related articles in the first PHP community!