mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Initial documentation
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@223032 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
ad25f5f4b0
commit
45b0ea59e1
1 changed files with 86 additions and 0 deletions
86
reference/errorfunc/functions/error-get-last.xml
Normal file
86
reference/errorfunc/functions/error-get-last.xml
Normal file
|
@ -0,0 +1,86 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.error-get-last">
|
||||
<refnamediv>
|
||||
<refname>error_get_last</refname>
|
||||
<refpurpose>Get the last occurred error</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>array</type><methodname>error_get_last</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
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.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>An <function>error_get_last</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
echo $a;
|
||||
print_r(error_get_last());
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs.similar;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
Array
|
||||
(
|
||||
[type] => 8
|
||||
[message] => Undefined variable: a
|
||||
[file] => C:\WWW\index.php
|
||||
[line] => 2
|
||||
)
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><link linkend="errorfunc.constants">Error constants</link></member>
|
||||
<member><link linkend="reserved.variables.phperrormsg">Variable <varname>$php_errormsg</varname></link></member>
|
||||
<member><link linkend="ini.display-errors">Directive <parameter>display_errors</parameter></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:"../../../../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
|
||||
-->
|
Loading…
Reference in a new issue