<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.uopz.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'function.uopz-get-static.php',
    1 => 'uopz_get_static',
    2 => 'Gets the static variables from function or method scope',
  ),
  'up' => 
  array (
    0 => 'ref.uopz.php',
    1 => 'Uopz Funktionen',
  ),
  'prev' => 
  array (
    0 => 'function.uopz-get-return.php',
    1 => 'uopz_get_return',
  ),
  'next' => 
  array (
    0 => 'function.uopz-implement.php',
    1 => 'uopz_implement',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/uopz/functions/uopz-get-static.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.uopz-get-static" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">uopz_get_static</h1>
  <p class="verinfo">(PECL uopz 5, PECL uopz 6, PECL uopz 7)</p><p class="refpurpose"><span class="refname">uopz_get_static</span> &mdash; <span class="dc-title">Gets the static variables from function or method scope</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.uopz-get-static-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>uopz_get_static</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">$function</code></span>): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>

  <div class="methodsynopsis dc-description"><span class="methodname"><strong>uopz_get_static</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$function</code></span>): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>

  <p class="para rdfs-comment">
   Gets the static variables from function or method scope.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.uopz-get-static-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <dl>
   
    <dt><code class="parameter">class</code></dt>
    <dd>
     <p class="para">
      The name of the class.
     </p>
    </dd>
   
   
    <dt><code class="parameter">function</code></dt>
    <dd>
     <p class="para">
      The name of the function or method.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.uopz-get-static-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Returns an associative <span class="type"><a href="language.types.array.php" class="type array">array</a></span> of variable names mapped to their
   current values on success, or <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> if the function or method does not exist.
  </p>
  <p class="para">
   As of PHP 8.3.0, static initialzers are either computed during compile time,
   or if that is not possible, only when the function or method is run the first
   time, in which case the value of the static variable is reported as <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>
   prior to the first invocation.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.uopz-get-static-examples">
  <h3 class="title">Beispiele</h3>
  <div class="example" id="uopz-get-static.example.basic">
   <p><strong>Beispiel #1 Basic <span class="function"><strong>uopz_get_static()</strong></span> Usage</strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">function </span><span style="color: #0000BB">foo</span><span style="color: #007700">() {<br />    static </span><span style="color: #0000BB">$bar </span><span style="color: #007700">= </span><span style="color: #DD0000">'baz'</span><span style="color: #007700">;<br />}<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">uopz_get_static</span><span style="color: #007700">(</span><span style="color: #DD0000">'foo'</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>Das oben gezeigte Beispiel erzeugt folgende Ausgabe:</p></div>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">array(1) {
  [&quot;bar&quot;]=&gt;
  string(3) &quot;baz&quot;
}</pre>
</div>
   </div>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.uopz-get-static-seealso">
  <h3 class="title">Siehe auch</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="reflectionfunctionabstract.getstaticvariables.php" class="methodname" rel="rdfs-seeAlso">ReflectionFunctionAbstract::getStaticVariables()</a> - Gets static variables</span></li>
   <li><span class="function"><a href="function.uopz-set-static.php" class="function" rel="rdfs-seeAlso">uopz_set_static()</a> - Sets the static variables in function or method scope</span></li>
  </ul>
 </div>


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