Php entry variable string, php entry variable. Php entry variable string. The php entry variable string is only a string of characters enclosed by quotation marks: letters, numbers, spaces, punctuation marks, and so on. All the strings listed below are strings of php entry variables and php entry variables.
A string is only a string of characters enclosed in quotation marks: letters, numbers, spaces, punctuation marks, and so on.
All the strings listed below are strings:
?
1234 |
'Huige' "In watermelon sugar" '100' 'August 2, 2011' |
FAQ:
[1] When creating a string, you can use single or double quotation marks to encapsulate characters. In addition, you must use the same type of quotation marks at the beginning and end of the character.
[2] If the same quotation marks appear in the middle of the string, you can use the problematic characters (the problematic character here is double quotation marks, and other problematic characters will be known later) put a backslash before it and escape it:
?
123 |
$var = "Define \"platitude\", please." ; ?> |
Another way is to use single quotes (this way is to use single quotes when printing double quotes, and vice versa ):
?
123 |
$var = 'Define "platitude", please.' ; ?> |
[3] If the same variable is assigned twice (for example, $ book), the new value will overwrite the old value.
?
1234 |
$book = 'High Fidelity' ; $book = 'The Corrections' ; ?> |
The result is printed by yourself, so that you can verify whether the new value overwrites the old value.
The delimiter string is only a string of characters enclosed in quotation marks: letters, numbers, spaces, punctuation marks, and so on. All the strings listed below are strings...