Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What does php mean by adding a dot before and after the variable?

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report