Variable variables
| From: | Richard Baskett | Date: | Wed, 26 Sep 2001 20:10:57 +0000 |
| Subject: | Variable variables | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-68916@lists.php.net to get a copy of this message | ||
I can not figure out why this is not working!
for ($j=0; $j<$resultNum; $j++) {
$newvar = "finalresult".$a;
$$newvar[$a][name] = $resultRow[name];
$$newvar[$a][title] = $resultRow[title];
$$newvar[$a][descript] = $resultRow[descript];
$$newvar[$a][countkey] = substr_count("$resultRow[keywords]", "$keyword");
a++;
}
This is how you use variable variables, is it not? Is it because it's a
multidimensional array? or am I missing something else?
Rick