Re: Using a variable in a variable
| From: | Alexander Wagner | Date: | Tue, 13 Feb 2001 21:40:44 +0000 |
| Subject: | Re: Using a variable in a variable | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-39503@lists.php.net to get a copy of this message | ||
Brandon Orther wrote:
> $test($i)text = "$i";
> ^^----------------------I want this variable to get bigger
Try this:
$test{$i}text = $i;
(I'm not sure if this actually works)
or
$varname = 'test'.$i.'text';
$$varname = $i;
regards
Wagner
--
Three may keep a secret, if two of them are dead.