lastInsertedId

Returns the last inserted id of auto increment data type.

Usage:

$db->{table}->lastInsertedId();

Example:

$lastId = $db->news->lastInsertedId();

Returns:

// 1

Last updated