From 45b0ea59e14381389f3a2f96b83bd68a5b59a63f Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Thu, 9 Nov 2006 08:37:32 +0000 Subject: [PATCH] Initial documentation git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@223032 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../errorfunc/functions/error-get-last.xml | 86 +++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 reference/errorfunc/functions/error-get-last.xml 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 + + + + + + +