diff --git a/reference/misc/functions/php-strip-whitespace.xml b/reference/misc/functions/php-strip-whitespace.xml index 0c02c66c62..e2b95cf3a2 100644 --- a/reference/misc/functions/php-strip-whitespace.xml +++ b/reference/misc/functions/php-strip-whitespace.xml @@ -1,5 +1,5 @@ - + php_strip_whitespace @@ -8,13 +8,57 @@ - Description + &reftitle.description; stringphp_strip_whitespace - stringfile_name + stringfilename - &warn.undocumented.func; + + Returns the PHP source code in filename with + PHP comments and whitespace removed. This may be useful for determining the + amount of actual code in your scripts compared with the amount of comments. + + + + &reftitle.returnvalues; + + The stripped source code will be returned on success, or an empty string + on failure. + + + + &reftitle.examples; + + + <function>php_strip_whitespace</function> example + + +]]> + + &example.outputs; + + +]]> + + + Notice the PHP comments are gone, as are the whitespace and newline + after the first echo statement. + + +