I have these data array stored in variable $ids
array(3) {
[0]=>
array(1) {
["id"]=>
string(3) "472"
}
[1]=>
array(1) {
["id"]=>
string(3) "475"
}
[26]=>
array(1) {
["id"]=>
string(3) "498"
}
}
How can I get value of each id? I tried with for
loop but it's not working.
for ($i=0; $i < count($ids); $i++){
echo "ID is " . $ids['id'][$i];
}