note 68243 added to function.preg-replace
| From: | php-general at lists dot php dot net | Date: | Wed, 19 Jul 2006 14:24:00 +0000 |
| Subject: | note 68243 added to function.preg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-114931@lists.php.net to get a copy of this message | ||
In my php files I always write all content that should be echoed, into 1 variabele.
Is it possible to optimize that variabele, so the source code (right mouse button --> view
source) is as little as possible?
remove double spaces
remove tabs
remove white lines
remove html comments
and so on,
so that you get 1 long line of html output
does any1 know a way to do this?
----
Server IP: 194.109.193.119
Probable Submitter: 80.61.105.156
----
X-Spam-Status: No, hits=3.4 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER,
REMOVE_REMOVAL_NEAR autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.preg-replace.php
Edit -- http://master.php.net/note/edit/68243
Del: integrated -- http://master.php.net/note/delete/68243/integrated
Del: useless -- http://master.php.net/note/delete/68243/useless
Del: bad code -- http://master.php.net/note/delete/68243/bad+code
Del: spam -- http://master.php.net/note/delete/68243/spam
Del: non-english -- http://master.php.net/note/delete/68243/non-english
Del: in docs -- http://master.php.net/note/delete/68243/in+docs
Del: other reasons-- http://master.php.net/note/delete/68243
Reject -- http://master.php.net/note/reject/68243
Search -- http://master.php.net/manage/user-notes.php