I have an array, the output of print_r is:
Array ( [0] => Array ( [ID] => 1 [col1] => 1 ) [1] => Array ( [ID] => 2 [col1] => 2 ) )
Could you help of kind of array it is? So that I could research more about it? What I want is to get ID
and col1
values
I've tried to use foreach:
foreach($array_name as $key=>$value){
print "$key holds $value
";
}
The output I get is 0 holds Array 1 holds Array
And I would simply like to get:
1 1
2 2