LMongo\Query\Builder::pull PHP Method

pull() public method

Remove one value from the array key.
public pull ( string $column, mixed $value = null ) : integer
$column string
$value mixed
return integer
    public function pull($column, $value = null)
    {
        if (is_array($column)) {
            $update = array('$pull' => $column);
        } else {
            $update = array('$pull' => array($column => $value));
        }
        return $this->performUpdate($update);
    }
Builder