In php programming, the difference between using commas for echo and using dots is that using commas for echo. In php programming, the difference between using a comma for echo connection and using a dot number is that using an echo string is better
In php programming, the difference between using commas for echo and using dots is that using commas for echo
The echo string is better than the. Connection. The reason is not mentioned. Let's take a look at the following two sentences:
What is
The difference between a comma and a dot in PHP programming, echo comma
It mentions the Echo string, which is better than the connection. The reason is not to say, first look at the following two sentences
What was the result?
1+5=6? 1+5=6? ——————
Copy codeThe Code is as follows:Echo "asd"; // stringEcho "ads $ c"; // string + variableEcho 'ads $ C'; // string asd $ c is not a variableEcho "sd". "";Echo "sd", "";Echo $;Echo $ a. $ B;Echo $ a, $ B;Echo $ a. $ B. $ c;Echo $ a, $ B, $ c;Echo
PHP Echo string connection format, phpecho string format
Let's talk about the PHP echo () function.
Definition and usage
The echo () function outputs one or more strings.
Note: The echo () function is not actually a function, so you do not need to
PHP stands for "Hypertext Preprocessor", it is a server scripting language.What Can PHP do?
PHP can generate dynamic page content
PHP can create, open, read, write, delete, and close files on the server
PHP can collect form data
This article mainly introduces common php string output methods, and analyzes the specific usage and usage of echo, print, printf, and sprintf output strings in the form of examples, for more information about php string output, see the following
A string is composed of a series of characters, each of which is equivalent to a byte. This means that PHP only supports the 256 character set and therefore does not support Unicode. For details, see the description of the string type. Note: string..
In general, the dynamic output of HTML content in PHP is achieved through print and ECHO statements, and in practice, both print and ECHO functions are almost identical. It can be said that there is a place to use, and the other can be used. However,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.