Good day. I have a multidimensional array
Array ( [0] => stdClass Object ( [id] => 1 [title] => "Title1")
[1] => stdClass Object ( [id] => 3 [title] => "Title2")
[2] => stdClass Object ( [id] => 4 [title] => "Title3")
)
How can I get the number of the array by value from the array.
For example: how to get [2] having [id] => 4 or 0 on [id] => 1 ?