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,
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
The difference between echo and print in PHP is phpechoprint. The difference between echo and print in PHP. In general, PHP dynamically outputs HTML content through print and echo statements. in actual use, difference between echo and print in PHP:
Php Learning Log (3)-echo & print, php Learning Log-echo
In php, there are two methods to output the result: echo and print. The following compares the two methods.
Differences between echo and print:
Echo
Print
The difference between Echo and print in PHP, Phpechoprint
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
in PHP, there are two basic output methods: Echo and Print. In this tutorial, we'll use echo and print in almost every example. Therefore, this section provides you with more knowledge about these two output statements. PHP Echo and Print
In PHP, there are two basic output methods: Echo and Print.
PHP Echo and Print statements
The difference between Echo and print:
echo - 能够输出一个以上的字符串print - 只能输出一个字符串,并始终返回 1
Tip: Echo is slightly faster than print because it does not return any
Welcome to the Linux community forum and interact with 2 million technical staff to access echo. The difference between print is that echo can output multiple variable values, while print only has one variable, which is output as a string. Another
Echo (), print (), print_r () usage in php. My understanding of the echo (), print (), print_r () function is that echo can input string variable constants, and print is similar to echo, however, print_r can print arrays, but the first two are not
Differences between echo (), print (), and print_r () in PHP. The difference between echo and print is that echo can output multiple variable values, while print only has one variable, which is output as a string. another difference is that echo
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.