I have a string coming out of my database that contains the names of different bands. The bands are all seperated by the period '.'
$bands = $row["bands"];
list(
for($y = 0 ; $y< count($bands); $y++){
print ${"bands$y"};
}
) = explode(".",$bands);
for($x = 0; $x < count($bands); $x++){
print ${"bands$x"};
}
With this I am trying to define a list for exploding the variables into, then print all the variables. This code does not work could anyone tell me why not? and suggest a solution... thanks 🙂