RE: [PHP] Converting String to Variable
| From: | Randy Johnson | Date: | Sat, 03 Mar 2001 16:44:05 +0000 |
| Subject: | RE: [PHP] Converting String to Variable | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-42456@lists.php.net to get a copy of this message | ||
it may look weird but that is the way it needs to be done. here is a better
example
$str=myfunct() this returns monday
then i want the monday to turn into this
$monday
so i can do this
$monday="BlaH";
thanks
randy
-----Original Message-----
From: Ernest E Vogelsinger [mailto:ebird@1-at-web.at]
Sent: Saturday, March 03, 2001 11:35 AM
To: Randy Johnson
Cc: php-general@lists.php.net
Subject: Re: [PHP] Converting String to Variable
At 17:09 03.03.2001, Randy Johnson said:
--------------------[snip]--------------------
>Is there anyway to convert a string to a variable
>
>example
>
>$str="monday";
>
>I would like to then do this:
>
>$monday="blah";
--------------------[snip]--------------------
RTFM ;->
$$str = "blah";
print $monday;
...ebird
>O Ernest E. Vogelsinger
(\) http://www.1-at-web.at/
^ ICQ# 13394035