echo into variable or the like
| From: | s dot dev at optusnet dot com dot au | Date: | Tue, 21 Aug 2012 04:01:17 +0000 |
| Subject: | echo into variable or the like | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-48410@lists.php.net to get a copy of this message | ||
Hi, this is my first post so forgive me if I missed a rule and do something wrong.
I have this code,
echo $_SERVER['PHP_SELF']."?";
foreach ($_GET as $urlvar=>$urlval)
echo $urlvar."=".$urlval."&";
It works by it’s self.
I want to insert the output in a table. Is there a way to ‘echo’ into a variable(i.e. make the
output of this echo the value of a variable) or am I on the wrong track all together?