src/WPametu/Utility/IteratorWalker.php
public function prop_search( array $array, $property, $value ) {
		foreach ( $array as $key => $a ) {
			if ( property_exists( $a, $property ) && $a->{$property} == $value ) {
				return $key;
			}
		}

		return false;
	}
public function prop_search( array $array, $property, $value ) {
		foreach ( $array as $key => $a ) {
			if ( property_exists( $a, $property ) && $a->{$property} == $value ) {
				return $key;
			}
		}

		return false;
	}
public function prop_search ( array $ array , $ property , $ value ) { foreach ( $ array as $ key => $ a ) { if ( property_exists ( $ a , $ property ) && $ a -> { $ property } == $ value ) { return $ key ; } } return false ; }
Search array member with specified property

@param array $array
@param string $property
@param mixed $value

@return false|int|string
Search array member with specified property