core/classes/PDO.class.php
public function create($table, $data){
        $keys = array_keys($data);
        $values = ':' . implode(',:', $keys);
        $keys = implode(',', $keys);
        return $this->query($this->set("INSERT INTO {$table} ({$keys}) VALUES({$values})", $data));
    }
public function create($table, $data){
        $keys = array_keys($data);
        $values = ':' . implode(',:', $keys);
        $keys = implode(',', $keys);
        return $this->query($this->set("INSERT INTO {$table} ({$keys}) VALUES({$values})", $data));
    }
public function create ( $ table , $ data ) { $ keys = array_keys ( $ data ) ; $ values = ':' . implode ( ',:' , $ keys ) ; $ keys = implode ( ',' , $ keys ) ; return $ this -> query ( $ this -> set ( "INSERT INTO {$table} ({$keys}) VALUES({$values})" , $ data ) ) ; }
Perform an INSERT statement.

@param string $table The name of the table to insert into.
@param array $data The data to insert into the table, must be an associative array.

@return mixed
@throws \Disco\exceptions\DBQuery
Perform an INSERT statement .