<!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>Reads the contents of the current node as a string</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="xmlreader.readouterxml.html">XMLReader::readOuterXML</a></div> <div class="next" style="text-align: right; float: right;"><a href="xmlreader.setparserproperty.html">XMLReader::setParserProperty</a></div> <div class="up"><a href="class.xmlreader.html">XMLReader</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="xmlreader.readstring" class="refentry"> <div class="refnamediv"> <h1 class="refname">XMLReader::readString</h1> <p class="verinfo">(PHP 5 >= 5.2.0)</p><p class="refpurpose"><span class="refname">XMLReader::readString</span> — <span class="dc-title">Reads the contents of the current node as a string</span></p> </div> <div class="refsect1 description" id="refsect1-xmlreader.readstring-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">string</span> <span class="methodname"><strong>XMLReader::readString</strong></span> ( <span class="methodparam">void</span> )</div> <p class="para rdfs-comment"> Reads the contents of the current node as a string. </p> </div> <div class="refsect1 parameters" id="refsect1-xmlreader.readstring-parameters"> <h3 class="title">Parameters</h3> <p class="para">This function has no parameters.</p> </div> <div class="refsect1 returnvalues" id="refsect1-xmlreader.readstring-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns the content of the current node as a string. Empty string on failure. </p> </div> <div class="refsect1 notes" id="refsect1-xmlreader.readstring-notes"> <h3 class="title">Notes</h3> <div class="caution"><strong class="caution">Caution</strong><p class="para">This function is only available when PHP is compiled against libxml 20620 or later.</p></div> </div> <div class="refsect1 seealso" id="refsect1-xmlreader.readstring-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"> <span class="function"><a href="xmlreader.readouterxml.html" class="function" rel="rdfs-seeAlso">XMLReader::readOuterXML()</a> - Retrieve XML from current node, including it self</span></li> <li class="member"> <span class="function"><a href="xmlreader.readinnerxml.html" class="function" rel="rdfs-seeAlso">XMLReader::readInnerXML()</a> - Retrieve XML from current node</span></li> <li class="member"> <span class="function"><a href="xmlreader.expand.html" class="function" rel="rdfs-seeAlso">XMLReader::expand()</a> - Returns a copy of the current node as a DOM object</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="xmlreader.readouterxml.html">XMLReader::readOuterXML</a></div> <div class="next" style="text-align: right; float: right;"><a href="xmlreader.setparserproperty.html">XMLReader::setParserProperty</a></div> <div class="up"><a href="class.xmlreader.html">XMLReader</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>