PHP has an in_array
function for checking if a particular value exists in an native array/collection. I'm looking for an equivalent function/method for ArrayObject, but none of the methods appear to duplicate this functionality.
I know I could cast the ArrayObject as an (array) and use it in in_array. I also know I could manually iterate over the ArrayObject and look for the value. Neither seems like the "right" way to do this.
"No" is a perfectly appropriate answer if you can back it up with evidence.