In HTML and PHP writing, echo can output multiple strings at the same time without parentheses. Copy the code The code is as follows: Copy the code The code is as follows:
The above is a summary of the differences in understanding the usage of print EOT delimiter and echo EOT in powerpoint2003 official download free full version PHP, including the content of powerpoint2003 official download free full version. I hope it will be helpful to friends who are interested in PHP tutorials.
Print can only output one string at the same time and requires parentheses.
The usage of print is very similar to C language, so % in the output content will be specially interpreted.
echo has no return value, print() has a return value, and returns false when its execution fails (such as disconnection).
echo can have multiple parameters and print one parameter. It is recommended to use echo.
Look at the example below to understand what print <<
print <<
$value;
...
EOT;
Meaning:
<<< operator, the content between the custom delimiters is regarded as a string, and the variables in between can be processed;
EOT The custom delimiter must be at the beginning of the line when it ends;
Use <<< tags
tags in the same page;
Note: tag names are not allowed to appear in pairs, and more than two tag names with the same name are not allowed to appear on the same page;
Another: the tag name at the end of the paired tag name should be separate One line, no characters are allowed to be output before and after... (such as spaces and other invisible but existing characters...).
Advantages: This can output large sections of HTML without escaping the quotation marks or "" and automatically replaces the variables inside.
How to output html code (EOT) in php
PHP code
echo <<< EOT
ClassID stuno Student name Parent name Parents mobile number
EOT;
?>
Detailed source reference: http://www.jb51.net/article/16022.htm
vim save and exit command
How to set path environment variable
Mysql database migration method
C++ software Chinese change tutorial
The difference between rest api and api
How to use mysql workbench
How to use nanosleep function
What are the methods for restarting applications in Android?
transactionscope usage