Looping Through Associative Array - PHP
This was totally not very intuitive. I was expecting something like this:
foreach($array as $sub) {
echo(key($sub));
}
Instead, it’s this:
foreach ($decodedOutput as $key => $value) {
echo $key;
}
This was totally not very intuitive. I was expecting something like this:
foreach($array as $sub) {
echo(key($sub));
}
Instead, it’s this:
foreach ($decodedOutput as $key => $value) {
echo $key;
}