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)