Re: combining two variables to make one???
| From: | Chris Boget | Date: | Mon, 22 Dec 2003 15:04:49 +0000 |
| Subject: | Re: combining two variables to make one??? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-173156@lists.php.net to get a copy of this message | ||
> Doesn't work for me though...?
Which isn't working?
This:
${"$options{$i}"} = "result $i";
or this:
$i = 1;
while ($i >= 3) {
$varName = $options . $i;
${$varName} = "result $i";
}
> What do the '{' mean when declaring the variable?
I can't remember where it is in the documentation, but the '{' '}' symbols
basically clear up any ambiguity for the parser indicatig where the actual
variables are in a statement.
Chris