svn: /phpdoc/en/trunk/reference/errorfunc/functions/ error-clear-last.xml
| From: | Pasindu De Silva | Date: | Sun, 19 Jul 2015 16:09:47 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/errorfunc/functions/ error-clear-last.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-13473@lists.php.net to get a copy of this message | ||
pasindu Sun, 19 Jul 2015 16:09:47 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=337198
Log:
Added error_clear_last
Changed paths:
A phpdoc/en/trunk/reference/errorfunc/functions/error-clear-last.xml
Added: phpdoc/en/trunk/reference/errorfunc/functions/error-clear-last.xml
===================================================================
--- phpdoc/en/trunk/reference/errorfunc/functions/error-clear-last.xml (rev
0)
+++ phpdoc/en/trunk/reference/errorfunc/functions/error-clear-last.xml 2015-07-19 16:09:47 UTC (rev
337198)
@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision$ -->
+
+<refentry xml:id="function.error-clear-last" xmlns="http://docbook.org/ns/docbook">
+ <refnamediv>
+ <refname>error_clear_last</refname>
+ <refpurpose>Clear the last error occurred</refpurpose>
+ </refnamediv>
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>void</type><methodname>error_clear_last</methodname>
+ <void/>
+ </methodsynopsis>
+ <para>
+ </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ Clear the last error occurred
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title>An <function>error_clear_last</function> example</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+var_dump(error_get_last());
+error_clear_last();
+var_dump(error_get_last());
+
+@$a = $b;
+
+var_dump(error_get_last());
+error_clear_last();
+var_dump(error_get_last());
+?>
+]]>
+ </programlisting>
+ &example.outputs.similar;
+ <screen>
+<![CDATA[
+NULL
+NULL
+array(4) {
+ ["type"]=>
+ int(8)
+ ["message"]=>
+ string(21) "Undefined variable: b"
+ ["file"]=>
+ string(9) "%s"
+ ["line"]=>
+ int(6)
+}
+NULL
+]]>
+ </screen>
+ </example>
+ </para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><link linkend="errorfunc.constants">Error
constants</link></member>
+ </simplelist>
+ </para>
+ </refsect1>
+
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->
Property changes on: phpdoc/en/trunk/reference/errorfunc/functions/error-clear-last.xml
___________________________________________________________________
Added: svn:keywords
+ Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL
Added: svn:eol-style
+ native