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

contributors($setup);

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

 </div>

 <div id="reflectionclass.export-refsynopsisdiv">
   <div class="warning"><strong class="warning">Avviso</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-reflectionclass.export-description">
  <h3 class="title">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><strong>ReflectionClass::export</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span> <code class="parameter">$argument</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">
   Exports a reflected class.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-reflectionclass.export-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">argument</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-reflectionclass.export-returnvalues">
  <h3 class="title">Valori restituiti</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 examples" id="refsect1-reflectionclass.export-examples">
  <h3 class="title">Esempi</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Example #1 Basic usage of <span class="methodname"><strong>ReflectionClass::export()</strong></span></strong></p>
    <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">class </span><span style="color: #0000BB">Apple </span><span style="color: #007700">{<br />    public </span><span style="color: #0000BB">$var1</span><span style="color: #007700">;<br />    public </span><span style="color: #0000BB">$var2 </span><span style="color: #007700">= </span><span style="color: #DD0000">'Orange'</span><span style="color: #007700">;<br /><br />    public function </span><span style="color: #0000BB">type</span><span style="color: #007700">() {<br />        return </span><span style="color: #DD0000">'Apple'</span><span style="color: #007700">;<br />    }<br />}<br /></span><span style="color: #0000BB">ReflectionClass</span><span style="color: #007700">::</span><span style="color: #0000BB">export</span><span style="color: #007700">(</span><span style="color: #DD0000">'Apple'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>Il precedente esempio visualizzerà
qualcosa simile a:</p></div>
    <div class="example-contents screen">
<div class="annotation-interactive examplescode"><pre class="examplescode">Class [ &lt;user&gt; class Apple ] {
  @@ php shell code 1-8

  - Constants [0] {
  }

  - Static properties [0] {
  }

  - Static methods [0] {
  }

  - Properties [2] {
    Property [ &lt;default&gt; public $var1 ]
    Property [ &lt;default&gt; public $var2 ]
  }

  - Methods [1] {
    Method [ &lt;user&gt; public method type ] {
      @@ php shell code 5 - 7
    }
  }
}</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-reflectionclass.export-seealso">
  <h3 class="title">Vedere anche:</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="reflectionclass.getname.php" class="methodname" rel="rdfs-seeAlso">ReflectionClass::getName()</a> - Gets class name</span></li>
    <li><span class="methodname"><a href="reflectionclass.tostring.php" class="methodname" rel="rdfs-seeAlso">ReflectionClass::__toString()</a> - Returns the string representation of the ReflectionClass object</span></li>
   </ul>
  </p>
 </div>


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