I have an array that gives me this when I do:
print_r($my_array);
Array
(
[0] => Array
(
[dra_id] => 5
) [1] => Array
(
[dra_id] => 8
) [2] => Array
(
[dra_id] => 9
))
using a foreach() I want to create a variable with a unique incremental name for each of the values.
for example:
$dra_1 = 5; $dra_2 = 8; $dra_3 = 9;
How would I do this? A variable that has a variable name based on a counter in the loop? Not sure the syntax for that.
Thanks Charles
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

