Hi.
I have a variable variable called
Im new to the variable variable thing..
And Im trying to implode that array but for some reason it wont work (I think because of the use of a variable variable)
I can directly echo variables from the array. and use count on the array..
that works fine for some reason
I have a variable variable called
Code:
${'stringstack_'.$categoryno} = array();
And Im trying to implode that array but for some reason it wont work (I think because of the use of a variable variable)
Code:
foreach ($categorynos as $categoryno)
{
implode("','",${'stringstack_'.$categoryno});
}
Code:
echo ${'stringstack_'.$categoryno}[0];
echo count(${'stringstack_'.$categoryno});