<?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 => 'pt_BR',
  ),
  'this' => 
  array (
    0 => 'reflectionfunction.tostring.php',
    1 => 'ReflectionFunction::__toString',
    2 => 'Retorna a representa&ccedil;&atilde;o em string do objeto ReflectionFunction',
  ),
  'up' => 
  array (
    0 => 'class.reflectionfunction.php',
    1 => 'ReflectionFunction',
  ),
  'prev' => 
  array (
    0 => 'reflectionfunction.isdisabled.php',
    1 => 'ReflectionFunction::isDisabled',
  ),
  'next' => 
  array (
    0 => 'class.reflectionfunctionabstract.php',
    1 => 'ReflectionFunctionAbstract',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'pt_BR',
    'path' => 'reference/reflection/reflectionfunction/tostring.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="reflectionfunction.tostring" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ReflectionFunction::__toString</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">ReflectionFunction::__toString</span> &mdash; <span class="dc-title">Retorna a representação em string do objeto ReflectionFunction</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-reflectionfunction.tostring-description">
  <h3 class="title">Descrição</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>ReflectionFunction::__toString</strong></span>(): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

  <p class="para rdfs-comment">
   Obtém uma descrição legível da função, seus parâmetros e valores de retorno.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-reflectionfunction.tostring-parameters">
  <h3 class="title">Parâmetros</h3>
  <p class="para">Esta função não possui parâmetros.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-reflectionfunction.tostring-returnvalues">
  <h3 class="title">Valor Retornado</h3>
  <p class="para">
   A string.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-reflectionfunction.tostring-examples">
  <h3 class="title">Exemplos</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Exemplo #1 Exemplo de <span class="methodname"><strong>ReflectionFunction::__toString()</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">function </span><span style="color: #0000BB">title</span><span style="color: #007700">(</span><span style="color: #0000BB">$title</span><span style="color: #007700">, </span><span style="color: #0000BB">$name</span><span style="color: #007700">)<br />{<br />    return </span><span style="color: #0000BB">sprintf</span><span style="color: #007700">(</span><span style="color: #DD0000">"%s. %s\r\n"</span><span style="color: #007700">, </span><span style="color: #0000BB">$title</span><span style="color: #007700">, </span><span style="color: #0000BB">$name</span><span style="color: #007700">);<br />}<br /><br />echo new </span><span style="color: #0000BB">ReflectionFunction</span><span style="color: #007700">(</span><span style="color: #DD0000">'title'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>O exemplo acima produzirá
algo semelhante a:</p></div>
    <div class="example-contents screen">
<div class="annotation-interactive examplescode"><pre class="examplescode">Function [ &lt;user&gt; function title ] {
  @@ Command line code 1 - 1

  - Parameters [2] {
    Parameter #0 [ &lt;required&gt; $title ]
    Parameter #1 [ &lt;required&gt; $name ]
  }
}</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-reflectionfunction.tostring-seealso">
  <h3 class="title">Veja Também</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="reflectionfunction.export.php" class="methodname" rel="rdfs-seeAlso">ReflectionFunction::export()</a> - Fun&ccedil;&atilde;o de exporta&ccedil;&atilde;o</span></li>
    <li><a href="language.oop5.magic.php#object.tostring" class="link">__toString()</a></li>
   </ul>
  </p>
 </div>


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