I have the following data structure $all =
[0] => stdClass Object
(
[[email protected]] => Array
(
[usr] => 130
[fname] => Bob
[lname] => thekid
[email] => [email protected]
[news] => 0
[wres] => 1
[SWAGLeaders] => 0
[cca-cpg] => 1
[cleanup-cpg] => 0
[gas-cpg] => 1
[pollinators-cpg] => 0
[climate-int] => 0
[composting-int] => 0
[energy-int] => 1
[other-int] => 0
[pollinators-int] => 0
[recycling-int] => 0
[transport-int] => 1
[trees-int] => 0
[water-int] => 0
)
)
How do I access the inner keys/values?
I tried print_r($all[0]['[email protected]']); but that produced nothing
also, is '[email protected]' a key? or a variable? I thought it was a key whose value is the array and then inside the array we have additional key/value pairs