<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Retrieve last error from libxml</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.libxml-get-errors.html">libxml_get_errors</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.libxml-set-external-entity-loader.html">libxml_set_external_entity_loader</a></div> <div class="up"><a href="ref.libxml.html">libxml Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.libxml-get-last-error" class="refentry"> <div class="refnamediv"> <h1 class="refname">libxml_get_last_error</h1> <p class="verinfo">(PHP 5 >= 5.1.0)</p><p class="refpurpose"><span class="refname">libxml_get_last_error</span> — <span class="dc-title"> Retrieve last error from libxml </span></p> </div> <div class="refsect1 description" id="refsect1-function.libxml-get-last-error-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type"><a href="class.libxmlerror.html" class="type LibXMLError">LibXMLError</a></span> <span class="methodname"><strong>libxml_get_last_error</strong></span> ( <span class="methodparam">void</span> )</div> <p class="para rdfs-comment"> Retrieve last error from libxml. </p> </div> <div class="refsect1 returnvalues" id="refsect1-function.libxml-get-last-error-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns a <span class="type"><a href="class.libxmlerror.html" class="type LibXMLError">LibXMLError</a></span> object if there is any error in the buffer, <strong><code>FALSE</code></strong> otherwise. </p> </div> <div class="refsect1 seealso" id="refsect1-function.libxml-get-last-error-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"> <span class="function"><a href="function.libxml-get-errors.html" class="function" rel="rdfs-seeAlso">libxml_get_errors()</a> - Retrieve array of errors</span></li> <li class="member"> <span class="function"><a href="function.libxml-clear-errors.html" class="function" rel="rdfs-seeAlso">libxml_clear_errors()</a> - Clear libxml error buffer</span></li> </ul> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.libxml-get-errors.html">libxml_get_errors</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.libxml-set-external-entity-loader.html">libxml_set_external_entity_loader</a></div> <div class="up"><a href="ref.libxml.html">libxml Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>