note 85138 added to function.implode
| From: | compton at osu1 dot php dot net | Date: | Sat, 16 Aug 2008 15:51:58 +0000 |
| Subject: | note 85138 added to function.implode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-143559@lists.php.net to get a copy of this message | ||
superstuntguy below would save himself and his server a lot of time just by using
$_SERVER['QUERY_STRING'] (see http://uk.php.net/manual/en/reserved.variables.server.php),
as in:
<?php
echo '<form action=', $_SERVER['PHP_SELF'], '?',
$_SERVER['QUERY_STRING'], ' method=post>';
?>
Note: using commas instead of full-stops (periods) between strings for echo is marginally more
efficient as echo can then simply pop the substrings off the stack avoiding the tincy-wincy extra
overhead of string concatenation.
----
Server IP: 92.48.100.16
Probable Submitter: 80.195.163.146
----
Manual Page -- http://www.php.net/manual/en/function.implode.php
Edit -- https://master.php.net/note/edit/85138
Del: integrated -- https://master.php.net/note/delete/85138/integrated
Del: useless -- https://master.php.net/note/delete/85138/useless
Del: bad code -- https://master.php.net/note/delete/85138/bad+code
Del: spam -- https://master.php.net/note/delete/85138/spam
Del: non-english -- https://master.php.net/note/delete/85138/non-english
Del: in docs -- https://master.php.net/note/delete/85138/in+docs
Del: other reasons-- https://master.php.net/note/delete/85138
Reject -- https://master.php.net/note/reject/85138
Search -- https://master.php.net/manage/user-notes.php