<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.reflectionfunction.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'reflectionfunction.export.php',
    1 => 'ReflectionFunction::export',
    2 => 'Exports function',
  ),
  'up' => 
  array (
    0 => 'class.reflectionfunction.php',
    1 => 'ReflectionFunction',
  ),
  'prev' => 
  array (
    0 => 'reflectionfunction.construct.php',
    1 => 'ReflectionFunction::__construct',
  ),
  'next' => 
  array (
    0 => 'reflectionfunction.getclosure.php',
    1 => 'ReflectionFunction::getClosure',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/reflection/reflectionfunction/export.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="reflectionfunction.export" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ReflectionFunction::export</h1>
  <p class="verinfo">(PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">ReflectionFunction::export</span> &mdash; <span class="dc-title">Exports function</span></p>

 </div>

 <div id="reflectionfunction.export-refsynopsisdiv">
   <div class="warning"><strong class="warning">Warning</strong><p class="simpara">This function has been
<em>DEPRECATED</em> as of PHP 7.4.0, and <em>REMOVED</em> as of PHP 8.0.0. Relying on this function
is highly discouraged.</p></div>
 </div>

 <div class="refsect1 description" id="refsect1-reflectionfunction.export-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><strong>ReflectionFunction::export</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$name</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$return</code><span class="initializer"> = ?</span></span>): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

  <p class="para rdfs-comment">
   Exports a Reflected function.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-reflectionfunction.export-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">name</code></dt>
     <dd>
      <p class="para">
       The reflection to export.
      </p>
     </dd>
    
    
     <dt><code class="parameter">return</code></dt>
     <dd>
      <p class="para">
       Setting to <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> will return the export,
as opposed to emitting it. Setting to <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> (the default) will do the opposite.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-reflectionfunction.export-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   If the <code class="parameter">return</code> parameter
is set to <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>, then the export is returned as a <span class="type"><a href="language.types.string.php" class="type string">string</a></span>,
otherwise <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> is returned.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-reflectionfunction.export-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="reflectionfunction.invoke.php" class="methodname" rel="rdfs-seeAlso">ReflectionFunction::invoke()</a> - Invokes function</span></li>
    <li><span class="methodname"><a href="reflectionfunction.tostring.php" class="methodname" rel="rdfs-seeAlso">ReflectionFunction::__toString()</a> - Returns the string representation of the ReflectionFunction object</span></li>
   </ul>
  </p>
 </div>


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