<?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.getproperty.php',
    1 => 'ReflectionClass::getProperty',
    2 => 'Gets a ReflectionProperty for a class\'s property',
  ),
  'up' => 
  array (
    0 => 'class.reflectionclass.php',
    1 => 'ReflectionClass',
  ),
  'prev' => 
  array (
    0 => 'reflectionclass.getproperties.php',
    1 => 'ReflectionClass::getProperties',
  ),
  'next' => 
  array (
    0 => 'reflectionclass.getreflectionconstant.php',
    1 => 'ReflectionClass::getReflectionConstant',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/reflection/reflectionclass/getproperty.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="reflectionclass.getproperty" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ReflectionClass::getProperty</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">ReflectionClass::getProperty</span> &mdash; <span class="dc-title">Gets a <span class="classname"><a href="class.reflectionproperty.php" class="classname">ReflectionProperty</a></span> for a class&#039;s property</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-reflectionclass.getproperty-description">
  <h3 class="title">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>ReflectionClass::getProperty</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="type"><a href="class.reflectionproperty.php" class="type ReflectionProperty">ReflectionProperty</a></span></div>

  <p class="para rdfs-comment">
   Gets a <span class="classname"><a href="class.reflectionproperty.php" class="classname">ReflectionProperty</a></span> for a class&#039;s property.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-reflectionclass.getproperty-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">name</code></dt>
     <dd>
      <p class="para">
       The property name.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-reflectionclass.getproperty-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="para">
   A <span class="classname"><a href="class.reflectionproperty.php" class="classname">ReflectionProperty</a></span>.
  </p>
 </div>

 
 <div class="refsect1 examples" id="refsect1-reflectionclass.getproperty-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::getProperty()</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 />$class </span><span style="color: #007700">= new </span><span style="color: #0000BB">ReflectionClass</span><span style="color: #007700">(</span><span style="color: #DD0000">'ReflectionClass'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$property </span><span style="color: #007700">= </span><span style="color: #0000BB">$class</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getProperty</span><span style="color: #007700">(</span><span style="color: #DD0000">'name'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$property</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à:</p></div>
    <div class="example-contents screen">
<div class="annotation-interactive examplescode"><pre class="examplescode">object(ReflectionProperty)#2 (2) {
  [&quot;name&quot;]=&gt;
  string(4) &quot;name&quot;
  [&quot;class&quot;]=&gt;
  string(15) &quot;ReflectionClass&quot;
}</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-reflectionclass.getproperty-seealso">
  <h3 class="title">Vedere anche:</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="reflectionclass.getproperties.php" class="methodname" rel="rdfs-seeAlso">ReflectionClass::getProperties()</a> - Gets properties</span></li>
   </ul>
  </p>
 </div>


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