Used __FILE__ as it'll work in CLI too

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@168120 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Aidan Lister 2004-09-07 12:21:48 +00:00
parent 11e2c97593
commit 3c2c370ccb

View file

@ -1,5 +1,5 @@
<?xml version='1.0' encoding='iso-8859-1'?>
<!-- $Revision: 1.4 $ -->
<!-- $Revision: 1.5 $ -->
<refentry id="function.php-strip-whitespace">
<refnamediv>
<refname>php_strip_whitespace</refname>
@ -50,7 +50,7 @@
* Another PHP comment
*/
echo php_strip_whitespace($_SERVER['PHP_SELF']);
echo php_strip_whitespace(__FILE__);
// Newlines are considered whitespace, and are removed too:
do_nothing();
?>
@ -60,7 +60,7 @@ do_nothing();
<screen>
<![CDATA[
<?php
echo php_strip_whitespace($_SERVER['PHP_SELF']); do_nothing(); ?>
echo php_strip_whitespace(__FILE__); do_nothing(); ?>
]]>
</screen>
<para>