Re: String construction help required please
| From: | Robert Cummings | Date: | Mon, 01 Dec 2003 07:05:51 +0000 |
| Subject: | Re: String construction help required please | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-171439@lists.php.net to get a copy of this message | ||
On Mon, 2003-12-01 at 01:59, Dave Carrera wrote:
> Hi List,
>
> I need to construct a string to visually show to the user some $_POST vars.
>
> I need to display : "$_POST[$var],"
>
> Including the "" and the , .
>
> I have tried : \"\"$_POST[\".$var.\"]," but that is very wrong.
>
> Could one of you kind list members show me what it should be please ?
>
> Thank you in advance for any help.
Doyou mean you want to do the following? :
echo '"'.$_POST[$var].'",';
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'