<?php
class Foo {
	public $name;
	public $type;
	
	public function __construct($name, $type) {
		$this->name = $name;
		$this->type = $type;
	}
}

$array[] = new Foo('first', 0);
$array[] = new Foo('second', 0);
$array[] = new Foo('third', 1);
$array[] = new Foo('fourth', 1);

$filter = array_search(1, $array, true);

print_r($filter);