
Druckansicht von http://www.php-homepage.de/manual/function.php-strip-whitespace.php
php_strip_whitespace(PHP 5) php_strip_whitespace — Return source with stripped comments and whitespace Beschreibung
string php_strip_whitespace
( string
$filename
)
Returns the PHP source code in Parameter-Liste
RückgabewerteThe stripped source code will be returned on success, or an empty string on failure.
Beispiele
Beispiel #1 php_strip_whitespace() example
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: <?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. |