src/collections/Variables.php
public function filter($callback = null)
    {
        if ($callback !== null)
            $value = array_filter($this->value, $callback);
        else
            $value = array_filter($this->value);

        return $this->setValue($value);
    }
public function filter($callback = null)
    {
        if ($callback !== null)
            $value = array_filter($this->value, $callback);
        else
            $value = array_filter($this->value);

        return $this->setValue($value);
    }
public function filter ( $ callback = null ) { if ( $ callback !== null ) $ value = array_filter ( $ this -> value , $ callback ) ; else $ value = array_filter ( $ this -> value ) ; return $ this -> setValue ( $ value ) ; }
Performs `array_filter` to each item in collection.
@param callable $callback
@see array_filter()
@return $this
Performs array_filter to each item in collection .