In HTML and PHP writing, echo can output multiple strings at the same time, without the need for parentheses.
Print can only output one string at a time, requiring parentheses.
Print is used in a very similar way to the C language, so there is a special explanation for the% in the output content.
ECHO has no return value, print () has a return value, and returns Flase when its execution fails, such as a broken wire.
Echo can have multiple parameters, print one parameter. Recommended with Echo.
See the example below to see the print << in PHP
Copy the Code code as follows:
Print <<
$value;
...
EOT;
Meaning:
The <<< operator, which treats the variables between the custom delimiters as strings, can be processed;
EOT a custom delimiter, which must be at the beginning of the line at the end;
Use << on the same page <标记
Tag
Tag;
Note: The tag name is paired, and no more than two tag names appear on the same page;
Another: The end tag name of the pairing tag name should be a single line, not before and after the output characters are allowed ... (such as spaces such as invisible but existing characters ...).
Pros: This allows you to output a large segment of HTML without escaping the quotes inside it or replacing the variable inside with a "."
How to output HTML code in PHP (EOT)
PHP code
Copy code code as follows:
!--? php Echo <<& Lt EOT
The above describes the powerpoint2003 official download free full version PHP understands the print EoT delimiter and echo eot usage differences Summary, including the powerpoint2003 official download free full version of the content, I hope to be interested in PHP tutorial friends helpful.
classid |
stuno |
student name |
Parent's name |
parent mobile number |
EOT;?> detailed source reference: http://www.jb51.net/article/16022. HTM