Wire database p d o last insert id
Returns the ID of the last inserted row or sequence value
Usage
// basic usage
$string = $database->lastInsertId();
// usage with all arguments
$string = $database->lastInsertId($name = null);
Arguments
Name
Type(s)
Description
name
(optional)
string, null
Return value
string