Is php pdo lastInsertId function safe?
<p>I have the following simple transaction  </p>

<p>(1) user submit some data -> </p>

<p>(2)get data from user -> </p>

<p>(3)insert data to table -> </p>

<p>(4)get inserted row id (i.e lastinsertedId())  </p>

<p>What happen when two or more users simultaneously access this case?  </p>

<p>Whose row id return?</p>