errorInfo() public method

Fetches extended error information associated with the last operation on the statement.
public errorInfo ( ) : array
return array
 /**
  * @return mixed
  */
 function errorInfo()
 {
     return $this->stmt->errorInfo();
 }