Result::getGeneratedIdsGet generated ids Description
public array mysql_xdevapi\Result::getGeneratedIds()
Fetch the generated _id values from the last operation. The unique _id field is generated by the MySQL server. ParametersThis function has no parameters. Return ValuesAn array of generated _id's from the last operation, or an empty array if there are none. ExamplesExample #1 mysql_xdevapi\Result::getGeneratedIds example The above example will output something similar to:
array(2) {
[0]=>
string(28) "00005b6b53610000000000000064"
[1]=>
string(28) "00005b6b53610000000000000065"
}
|