Có hai toán tử chuỗi. Đầu tiên là toán tử nối ['.'], Trả về sự kết hợp của các đối số bên phải và trái của nó. Thứ hai là toán tử gán kết hợp ['.=
'], điều này nối liền đối số ở phía bên phải vào đối số ở phía bên trái. Vui lòng đọc các nhà khai thác chuyển nhượng để biết thêm thông tin.string operators. The first is the concatenation operator ['.'], which returns the concatenation of its right and left arguments. The second is the concatenating assignment operator ['.=
'], which appends the argument on the right side to the argument on the left side. Please read Assignment Operators for more
information.
K.alex ¶ ¶
9 năm trước
As for me, curly braces serve good substitution for concatenation, and they are quicker to type and code looks cleaner. Remember to use double quotes [" "] as their content is parced by php, because in single quotes [' '] you'll get litaral name of variable provided:
Anders Dot Benke tại Telia Dot Com ¶ ¶
18 năm trước
A word of caution - the dot operator has the same precedence as + and -, which can yield unexpected results.
Example:
0
1
3
4Stephen Clay ¶ ¶
16 năm trước
5
hexidecimalgadget tại hotmail dot com ¶ ¶
13 năm trước
6
7
4Mariusads :: at :: helpia.com ¶
14 năm trước
9
As for me, curly braces serve good substitution for concatenation, and they are quicker to type and code looks cleaner. Remember to use double quotes [" "] as their content is parced by php, because in single quotes [' '] you'll get litaral name of variable provided:
0
As for me, curly braces serve good substitution for concatenation, and they are quicker to type and code looks cleaner. Remember to use double quotes [" "] as their content is parced by php, because in single quotes [' '] you'll get litaral name of variable provided:
1
As for me, curly braces serve good substitution for concatenation, and they are quicker to type and code looks cleaner. Remember to use double quotes [" "] as their content is parced by php, because in single quotes [' '] you'll get litaral name of variable provided:
2
4Biziclop ¶ ¶
1 tháng trước
As for me, curly braces serve good substitution for concatenation, and they are quicker to type and code looks cleaner. Remember to use double quotes [" "] as their content is parced by php, because in single quotes [' '] you'll get litaral name of variable provided:
4
As for me, curly braces serve good substitution for concatenation, and they are quicker to type and code looks cleaner. Remember to use double quotes [" "] as their content is parced by php, because in single quotes [' '] you'll get litaral name of variable provided:
5
As for me, curly braces serve good substitution for concatenation, and they are quicker to type and code looks cleaner. Remember to use double quotes [" "] as their content is parced by php, because in single quotes [' '] you'll get litaral name of variable provided:
6
4