PHP Manual

PHP function php_strip_whitespace()

2019-09-11T08:04:03.000Z

Obsah článku

Availability in PHP 5.0

Return source with stripped comments and whitespace

Parameters

Parameter Data type Default value Note
$filename string not Path to the PHP file.

Return values

string

The stripped source code will be returned on success, or an empty string
on failure.



This function works as described as of PHP 5.0.1. Before this it would
only return an empty string. For more information on this bug and its
prior behavior, see bug report
#29606.

Additional resources

Official documentation for php-strip-whitespace

Jan Barášek   Více o autorovi

Autor článku pracuje jako seniorní vývojář a software architekt v Praze. Navrhuje a spravuje velké webové aplikace, které znáte a používáte. Od roku 2009 nabral bohaté zkušenosti, které tímto webem předává dál.

Rád vám pomůžu:

Související články

1.
225.

V jiných jazycích

Status:
All systems normal.
2025