<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.xsltprocessor.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'xsltprocessor.hasexsltsupport.php',
    1 => 'XSLTProcessor::hasExsltSupport',
    2 => 'Determine if PHP has EXSLT support',
  ),
  'up' => 
  array (
    0 => 'class.xsltprocessor.php',
    1 => 'XSLTProcessor',
  ),
  'prev' => 
  array (
    0 => 'xsltprocessor.getsecurityprefs.php',
    1 => 'XSLTProcessor::getSecurityPrefs',
  ),
  'next' => 
  array (
    0 => 'xsltprocessor.importstylesheet.php',
    1 => 'XSLTProcessor::importStylesheet',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/xsl/xsltprocessor/hasexsltsupport.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="xsltprocessor.hasexsltsupport" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">XSLTProcessor::hasExsltSupport</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.0.4, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">XSLTProcessor::hasExsltSupport</span> &mdash; <span class="dc-title">Determine if PHP has EXSLT support</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-xsltprocessor.hasexsltsupport-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>XSLTProcessor::hasExsltSupport</strong></span>(): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   This method determines if PHP was built with the <a href="https://gitlab.gnome.org/GNOME/libxslt/-/wikis/home" class="link external">&raquo;&nbsp;EXSLT library</a>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-xsltprocessor.hasexsltsupport-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">This function has no parameters.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-xsltprocessor.hasexsltsupport-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> on success or <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> on failure.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-xsltprocessor.hasexsltsupport-examples">
  <h3 class="title">Examples</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Example #1 Testing EXSLT support</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /><br />$proc </span><span style="color: #007700">= new </span><span style="color: #0000BB">XSLTProcessor</span><span style="color: #007700">;<br />if (!</span><span style="color: #0000BB">$proc</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">hasExsltSupport</span><span style="color: #007700">()) {<br />    die(</span><span style="color: #DD0000">'EXSLT support not available'</span><span style="color: #007700">);<br />}<br /><br /></span><span style="color: #FF8000">// do EXSLT stuff here ..<br /><br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>       
    </div>

   </div>
  </p>
 </div>


</div><?php manual_footer($setup); ?>