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
$database methods and properties
API reference based on ProcessWire core version 3.0.236