Thanks

----- Original Message -----
From: "scott [gts]" <[EMAIL PROTECTED]>
To: "php" <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 4:27 PM
Subject: RE: [PHP] Creating a Variable with the Name of a string


> try using assoc. arrays also...
> they're much nicer to deal with ;)
>
>
> > -----Original Message-----
> > From: James Atkinson [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, July 06, 2001 4:20 PM
> > To: Chris Anderson; [EMAIL PROTECTED]
> > Subject: RE: [PHP] Creating a Variable with the Name of a string
> >
> >
> > $temp = "myvar";
> > $$temp = "My value";
> >
> > echo $myvar;
> >
> > output:
> > My value
> >
> > - James
> >
> > > -----Original Message-----
> > > From: Chris Anderson [mailto:[EMAIL PROTECTED]]
> > > Sent: July 6, 2001 1:17 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: [PHP] Creating a Variable with the Name of a string
> > >
> > >
> > > I know this has been discussed before, but I've searched the manual
and
> > > didn't see it under Variable functions, or any of my searches.
> > > I have varible $temp, how can I create a variable whose name is the
> > > string stored in $temp? Thanks in advance
> > >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to