note 45436 added to function.php-strip-whitespace
| From: | nezar at control dot dk | Date: | Tue, 07 Sep 2004 12:10:21 +0000 |
| Subject: | note 45436 added to function.php-strip-whitespace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-76143@lists.php.net to get a copy of this message | ||
The example is not really that good, since $_SERVER['PHP_SELF'] is the virtual path to the
file being executed.
php_strip_whitespace(__FILE__);
will work no matter where the file is located or if the example is run via CLI or apache.
----
Manual Page -- http://www.php.net/manual/en/function.php-strip-whitespace.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45436
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45436&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45436&report=yes
Search -- http://master.php.net/manage/user-notes.php