PHP delimiter <<<eof problem

Source: Internet
Author: User
Tags php programming

In the process of PHP programming will inevitably encounter the output of large sections of HTML and JavaScript script, can be placed in a specific place, the route is not good processing, and a waste of time

If you follow the traditional output method, you will need a large number of escape strings to escape the special characters in the string.

Trouble is time-consuming, but also prone to grammatical errors

The function of PHP delimiter is to divide out an area, the format and contents of which are output as-is.

Any special characters in the PHP delimiter do not need to be escaped

Variables in PHP and delimiters are replaced with their values as normal.

<<<eof

.

Eof

If an error occurs during use,

Check if there are any spaces at the front and back of EOF, or return them directly, for example:

<?php

<table>

<tr>

<td>1</td>

<td>2</td>

<td>3</td>

<td>4</td>

<td>5</td>

</tr>

Eof

PHP delimiter <<<eof problem

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.