<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.reflectionmethod.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'reflectionmethod.export.php',
    1 => 'ReflectionMethod::export',
    2 => '导出 reflection 方法',
  ),
  'up' => 
  array (
    0 => 'class.reflectionmethod.php',
    1 => 'ReflectionMethod',
  ),
  'prev' => 
  array (
    0 => 'reflectionmethod.createfrommethodname.php',
    1 => 'ReflectionMethod::createFromMethodName',
  ),
  'next' => 
  array (
    0 => 'reflectionmethod.getclosure.php',
    1 => 'ReflectionMethod::getClosure',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'reference/reflection/reflectionmethod/export.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="reflectionmethod.export" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ReflectionMethod::export</h1>
  <p class="verinfo">(PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">ReflectionMethod::export</span> &mdash; <span class="dc-title">导出 reflection 方法</span></p>

 </div>

 <div id="reflectionmethod.export-refsynopsisdiv">
   <div class="warning"><strong class="warning">警告</strong><p class="simpara">本函数已自 PHP 7.4.0
起<em>弃用</em>，自 PHP 8.0.0 起<em>移除</em>。强烈建议不要依赖本函数。</p></div>
 </div>

 <div class="refsect1 description" id="refsect1-reflectionmethod.export-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><strong>ReflectionMethod::export</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$class</code></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.boolean.php" class="type bool">bool</a></span> <code class="parameter">$return</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></span></span>): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

  <p class="para rdfs-comment">
   导出 ReflectionMethod。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-reflectionmethod.export-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">class</code></dt>
     <dd>
      <p class="para">
       类名称。
      </p>
     </dd>
    
    
     <dt><code class="parameter">name</code></dt>
     <dd>
      <p class="para">
       方法名称。
      </p>
     </dd>
    
    
     <dt><code class="parameter">return</code></dt>
     <dd>
      <p class="para">
       设为 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 时返回导出结果，设为 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>（默认值）则忽略返回。
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-reflectionmethod.export-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   如果参数 <code class="parameter">return</code> 
设为 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>，导出结果将作为 <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
返回，否则返回 <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>。
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-reflectionmethod.export-changelog">
  <h3 class="title">更新日志</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>版本</th>
      <th>说明</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.0.0</td>
      <td>
       此函数已移除。
      </td>
     </tr>

     <tr>
      <td>7.4.0</td>
      <td>
       此函数已废弃。
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 seealso" id="refsect1-reflectionmethod.export-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="reflectionmethod.construct.php" class="methodname" rel="rdfs-seeAlso">ReflectionMethod::__construct()</a> - 构造 ReflectionMethod</span></li>
    <li><span class="methodname"><a href="reflectionmethod.tostring.php" class="methodname" rel="rdfs-seeAlso">ReflectionMethod::__toString()</a> - 返回反射方法对象的字符串表达</span></li>
   </ul>
  </p>
 </div>


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