Sorry, but it might be a very simple answer.
I do have an array:
Array ( [0] => 3 [1] => 0 )
If I do this:
foreach($array as $key){
$index = $key;
print_r($index);
}
Of course I get:
3
0
I want to have a variable with the index:
0
1
How do I do it? It should be very simple. I am disparing! Thanks for help!