What does php mean by adding a dot before and after the variable?
This article introduces the relevant knowledge of "what does php add a point before and after the variable". In the operation of the actual case, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
In PHP, add a "." before and after the variable. A dot means to connect a variable to the content before and after; the connector "." Used to concatenate several strings to display, strings are connected by dots, that is, the half-corner full stop in English, you can concatenate two or more strings into a string.
This article operating environment: Windows10 system, PHP7.1 version, Dell G3 computer.
What does php mean by adding a dot before and after the variable?
PHP defines a variable followed by a dot that is a connector
PHP is in dots. To connect the string
$str1= "Hello"; $str3=$str1. "World"; / / $str3==Hello Word
Many times we need to concatenate several strings to display. In PHP, strings are concatenated with "dots", that is, half-corner periods in English. "." is a string connector that can link two or more strings into a single string. For example:
The output result is: study hard and make progress every day.
This is the end of the content of "what does php mean by adding a dot before and after the variable". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!