<?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_filter($array, function($f) {return ($f->type == 1);});
 
$result = array_diff($array, $filter);

print_r($result);