Posted by Damo on 06/04/07 18:34
Hi,
I want to create variables in a loop, each with a different name. Here
is the loop i'm using:
if (is_array($attribs)) {
echo "Attributes : <br />";
while(list($key,$val) = each($attribs)) {
echo $key."has the value".$val."<br>";
}
}
I want to create a variable with the name of each $key and contain the
value in $val.
Is this possible?
Navigation:
[Reply to this message]
|