The previous article introduced you to "PHP Learning: Deep Understanding of Strings". This article continues to introduce to you the application of using delimiters to define strings: Let's study together! ! !
What is a delimiter:
The delimiter is another way to define a string. Delimited methods use delimiter syntax ("
Startwith the identifier
EOT and endwith the identifier
EOT. (We not only use EOT alone, but can also replace EOT with EOF)
Regarding the delimiter, we use code to show it specifically:
The demonstration results are as follows:
The use of delimited identifiers must also follow the naming rules of any other label in PHP:can only contain letters, numbers, underscores or non-digit characters at the beginning.
Recommended Learning: "PHP Video Tutorial"
The above is the detailed content of Do you know what a delimiter is? How do we define strings with delimiters? ? ?. For more information, please follow other related articles on the PHP Chinese website!