I've been searching on how to use php variable names inside an array and to much dismay I've found nothing. I'm sure it's something really simple but I can't seem to get it even after the numerous educated guesses I've made and tried.
What I want to do is use values I pull from a database and incorporate them in a bar graph script I downloaded. The values would go in the line of code below:
$data == array(1 => 0, 1.2, 2.5, 4.8, 16, 20, 22, 17, 7, 2, 1, 0);
Instead of having numbers I'd like to have variables such as $data_01
Any help would be much appreciated.
P.S. I'll give u a Pat on the back if you can help. Pat's a really nice guy ;)