Description

int insert(string $table, array $values)

Inserts one or more records

Parameters

string $table
The table wherein the record will be inserted.
array $values
The values for the record to insert, keys of this array should match the column names.

Return values

int - The last inserted ID.

Comment