mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
11e2c97593
commit
3c2c370ccb
1 changed files with 3 additions and 3 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue