Hi,
I want to create variables in a loop, each with a different name. Here
is the loop i'm using:
if (is_array($attr ibs)) {
echo "Attributes : <br />";
while(list($key ,$val) = each($attribs)) {
echo $key."has the value".$val."<b r>";
}
}
I want to create a variable with the name of each $key and contain the
value in $val.
Is this possible?
I want to create variables in a loop, each with a different name. Here
is the loop i'm using:
if (is_array($attr ibs)) {
echo "Attributes : <br />";
while(list($key ,$val) = each($attribs)) {
echo $key."has the value".$val."<b r>";
}
}
I want to create a variable with the name of each $key and contain the
value in $val.
Is this possible?
Comment