PHP functions (1)

Source: Internet
Author: User

function Php_strip_whitespace

function to remove empty lines and annotations of PHP files

2.php Source Code

<?php
This is a line of comments
echo "Hello world!";


echo "There are two lines of blank line";
* * Life is unfocused to be proud,
Don't make the golden bottle empty to the moon
*/

?>

We can use echo to output what the function has to deal with.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/59/DF/wKioL1TufgSwgPoRAADCqBLsyS4599.jpg "title=" Qq20150226095550.png "alt=" Wkiol1tufgswgporaadcqblsys4599.jpg "/>


You can see that empty lines and comments are gone, and we get more concise code.


It uses this function to output the source file that you want to simplify, and then save it as a code file, which greatly saves us

Time to tidy up the code.


Note: The first line allows for whitespace, and if you add a space after the first line start tag, it will be considered blank


end!

This article is from the "were Willing" blog, make sure to keep this source http://changbo.blog.51cto.com/1316452/1615365

PHP functions (1)

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.