I have an array of objects in PHP, like so:
[Places] => Array
(
[0] => stdClass Object
(
[PlaceId] => 837
[Name] => United Arab Emirates
[Type] => Country
)
[1] => stdClass Object
(
[PlaceId] => 838
[Name] => Afghanistan
[Type] => Country
)
[2] => stdClass Object
(
[PlaceId] => 839
[Name] => Antigua and Barbuda
[Type] => Country
)
)
How can I retrieve the Object inside this array if I only know the value of PlaceId, such as 837?