diff --git a/reference/errorfunc/functions/error-get-last.xml b/reference/errorfunc/functions/error-get-last.xml new file mode 100644 index 0000000000..a718957299 --- /dev/null +++ b/reference/errorfunc/functions/error-get-last.xml @@ -0,0 +1,86 @@ + + + + + error_get_last + Get the last occurred error + + + &reftitle.description; + + arrayerror_get_last + + + + + + &reftitle.returnvalues; + + Returns an associative array describing the last error with keys "type", + "message", "file" and "line". Returns &null; if there hasn't been an error + yet. + + + + + &reftitle.examples; + + + An <function>error_get_last</function> example + + +]]> + + &example.outputs.similar; + + 8 + [message] => Undefined variable: a + [file] => C:\WWW\index.php + [line] => 2 +) +]]> + + + + + + + &reftitle.seealso; + + + Error constants + Variable $php_errormsg + Directive display_errors + + + + + + +