PHP » GoLang |
login |
register |
about
|
GoLang php_strip_whitespace
request it (341)
GoLang replacement for PHP's php_strip_whitespace
[edit | history]
php_strip_whitespace(PHP 5, PHP 7) php_strip_whitespace — Return source with stripped comments and whitespace Description
string php_strip_whitespace
( string
$filename
)
Returns the PHP source code in Parameters
Return ValuesThe stripped source code will be returned on success, or an empty string on failure.
Examples
Example #1 php_strip_whitespace() example
<?php The above example will output: <?php echo php_strip_whitespace(__FILE__); do_nothing(); ?> Notice the PHP comments are gone, as are the whitespace and newline after the first echo statement. |
more
Recently updated
more
Most requested
more
Last requests
|