I have an array of Objects like this:
`array(1)
{
["networks"]=> array(20)
{
[0]=> object(stdClass)#2 (11)
{
["name"]=> string(17) "Ghostlight Coffee"
["id"]=> int(193086)
["is_fcc"]=> bool(true)
["latitude"]=> float(39.750251)
["longitude"]=> float(-84.175353)
["down_repeater"]=> int(0)
["down_gateway"]=> int(0)
["spare_nodes"]=> int(0)
["new_nodes"]=> int(0)
["node_count"]=> int(1)
["latest_firmware_version"]=> string(10) "fw-ng-r589"
}
[1]=> object(stdClass)#3 (11)
{
["name"]=> string(8) "toms new"
["id"]=> int(188149)
["is_fcc"]=> bool(true)
["latitude"]=> float(39.803392)
["longitude"]=> float(-84.210273)
["down_repeater"]=> int(0)
["down_gateway"]=> int(1)
["spare_nodes"]=> int(0)
["new_nodes"]=> int(0)
["node_count"]=> int(1)
["latest_firmware_version"]=> string(10) "fw-ng-r573"
}'
The array continues, but this should give you the idea. Basically I need to be able to search this array by "Name" and pull the associating "id" for use another function. Any ideas on how to do this? I don't want to use a loop, because this array will become several hundred objects long so I think that would take up too much time. I've tried array_search and I always get a false boolean. I'm kinda stuck.