$php_errormsg is a variable containing the text of the last error message generated by PHP. This variable will only be available within the scope in which the ...
php.net