note 3444 modified in Variable variables by ronabop
| From: | ronabop@php.net | Date: | Sat, 10 Mar 2001 23:39:42 +0000 |
| Subject: | note 3444 modified in Variable variables by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-12244@lists.php.net to get a copy of this message | ||
When using variable variables that are arrays, and you wish to print the value, you have to use a
temporary variable. For example:
print("${$a}[$index]");
will not work, use
$temp=${$a}[$index]"); print("$temp");
instead.
http://www.php.net/manual/variable-variables.php