PHP Manual
This manual is provided as a courtesy. It is not an official source. Please check php.net for updated information.
(PHP 3 >= 3.0.3, PHP 4, PECL)
Returns the last error number. If the return value is 0 no error has occurred. The error relates to the last command.