Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 7164

php-manual-en-7.2.11-1.mga7.noarch.rpm

<!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>Get options from an XML parser</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.xml-parser-free.html">xml_parser_free</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.xml-parser-set-option.html">xml_parser_set_option</a></div>
 <div class="up"><a href="ref.xml.html">XML Parser Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.xml-parser-get-option" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">xml_parser_get_option</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">xml_parser_get_option</span> &mdash; <span class="dc-title">Get options from an XML parser</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.xml-parser-get-option-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <span class="methodname"><strong>xml_parser_get_option</strong></span>
    ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$parser</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$option</code></span>
   )</div>

  <p class="para rdfs-comment">
   Gets an option value from an XML parser.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.xml-parser-get-option-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">parser</code></dt>

     <dd>

      <span class="simpara">
       A reference to the XML parser to get an option from.
      </span>
     </dd>

    
    
     <dt>
<code class="parameter">option</code></dt>

     <dd>

      <span class="simpara">
       Which option to fetch. <strong><code>XML_OPTION_CASE_FOLDING</code></strong>,
       <strong><code>XML_OPTION_SKIP_TAGSTART</code></strong>, <strong><code>XML_OPTION_SKIP_WHITE</code></strong>
       and <strong><code>XML_OPTION_TARGET_ENCODING</code></strong> are available.
       See <span class="function"><a href="function.xml-parser-set-option.html" class="function">xml_parser_set_option()</a></span> for their description.
      </span>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.xml-parser-get-option-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   This function returns <strong><code>FALSE</code></strong> if <code class="parameter">parser</code> does
   not refer to a valid parser or if <code class="parameter">option</code> isn&#039;t
   valid (generates also a <strong><code>E_WARNING</code></strong>).
   Else the option&#039;s value is returned.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.xml-parser-get-option-changelog">
  <h3 class="title">Changelog</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Version</th>
      <th>Description</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>7.1.24, 7.2.12, 7.3.0</td>
      <td>
       <code class="parameter">options</code> now supports <strong><code>XML_OPTION_SKIP_TAGSTART</code></strong>
       and <strong><code>XML_OPTION_SKIP_WHITE</code></strong>.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.xml-parser-free.html">xml_parser_free</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.xml-parser-set-option.html">xml_parser_set_option</a></div>
 <div class="up"><a href="ref.xml.html">XML Parser Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>