core/classes/PDO.class.php
public function delete($table, $data, $conjunction = 'AND'){
        $keys = array_keys($data);
        $pairs = Array();
        foreach($keys as $key){
            $pairs[] = "{$key}=:{$key}";
        }//foreach
        $pairs = implode(" {$conjunction} ", $pairs);
        return $this->query($this->set("DELETE FROM {$table} WHERE {$pairs}",$data));
    }
public function delete($table, $data, $conjunction = 'AND'){
        $keys = array_keys($data);
        $pairs = Array();
        foreach($keys as $key){
            $pairs[] = "{$key}=:{$key}";
        }//foreach
        $pairs = implode(" {$conjunction} ", $pairs);
        return $this->query($this->set("DELETE FROM {$table} WHERE {$pairs}",$data));
    }
public function delete ( $ table , $ data , $ conjunction = 'AND' ) { $ keys = array_keys ( $ data ) ; $ pairs = Array ( ) ; foreach ( $ keys as $ key ) { $ pairs [ ] = "{$key}=:{$key}" ; } //foreach $ pairs = implode ( " {$conjunction} " , $ pairs ) ; return $ this -> query ( $ this -> set ( "DELETE FROM {$table} WHERE {$pairs}" , $ data ) ) ; }
Perform a DELETE statement.

@param string $table The name of the table to delete from.
@param array $data The conditions specifying what rows to delete from the table, must be an associative array.
@param string $conjunction The conjunction used to form the where condition of the delete statement. Default
is `AND`.

@return mixed
@throws \Disco\exceptions\DBQuery
Perform a DELETE statement .