PHP delimiters
PHP is a Web programming language. In the programming process, it is inevitable that echo will be used to output large html and javascript scripts. If the traditional output method is used-output by string, there must be a large
I write a snippet of PHP code as follows:
Copy CodeThe code is as follows:
if (test case)
print
EOF;
Else
print
EOF;
?>
If this is not possible, you need to shelf the EOF identifier:
Copy CodeThe code is as follows:
if
Heredoc technology. HTML and JavaScript scripts that can be used to output large segmentsThe function of the 1.PHP delimiter is to follow the original, including the newline format, and output something inside it;2. Any special characters in the PHP
PHP is a web programming language, in the programming process will inevitably encounter the use of echo to output a large segment of HTML and JavaScript script, if the traditional output method-by the string output, there must be a large number of
This paper introduces the method of using EOF Heredoc to output long-segment content, $name = ' name 'print EOT heredoc Usage Details _ www.cnblogs.com Hello ,$name! EOT;? >Attention:1. Start with a 2. The start tag is
libmcrypt-2.5.7 mysql-5.1.57.tar.gz[ROOT@OSG work]# tar-zvxf php-5.3.10.tar.gz
gzip:stdin:unexpected End of FileTar:child returned status 1Tar:error is isn't recoverable:exiting now[ROOT@OSG work]#
centos6.2 Decompression PHP Error
Heredoc technology, usually not detailed in regular PHP documentation and technical books, just mentions that this is a Perl-style string output technique. But now some of the forum procedures, and some of the article system, are clever use of
PHP is a web programming language, in the programming process will inevitably encounter with Echo to output a large segment of HTML and JavaScript script, if the traditional output method-by string output,There must be a large number of escapes to
Use of the PHP EOFThat is, Heredoc technology, to partially implement interface and code separation this is a EOF page Hello, $name EOT;Begin with , with EOT; At the end, $name is
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.