<?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 => 'uk',
  ),
  'this' => 
  array (
    0 => 'function.uopz-copy.php',
    1 => 'uopz_copy',
    2 => 'Copy a function',
  ),
  'up' => 
  array (
    0 => 'ref.uopz.php',
    1 => 'Uopz Функції',
  ),
  'prev' => 
  array (
    0 => 'function.uopz-compose.php',
    1 => 'uopz_compose',
  ),
  'next' => 
  array (
    0 => 'function.uopz-del-function.php',
    1 => 'uopz_del_function',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/uopz/functions/uopz-copy.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.uopz-copy" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">uopz_copy</h1>
  <p class="verinfo">(PECL uopz 1 &gt;= 1.0.4, PECL uopz 2)</p><p class="refpurpose"><span class="refname">uopz_copy</span> &mdash; <span class="dc-title">Copy a function</span></p>

 </div>

 <div id="function.uopz-copy-refsynopsisdiv">
  <div class="warning"><strong class="warning">Увага</strong><p class="simpara">Ця функція
<em>ВИДАЛЕНА</em> в PECL uopz 5.0.0.</p></div>
 </div>

 <div class="refsect1 description" id="refsect1-function.uopz-copy-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>uopz_copy</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="class.closure.php" class="type Closure">Closure</a></span></div>

  <div class="methodsynopsis dc-description"><span class="methodname"><strong>uopz_copy</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="class.closure.php" class="type Closure">Closure</a></span></div>

  <p class="para rdfs-comment">
   Copy a function by name
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.uopz-copy-parameters">
  <h3 class="title">Параметри</h3>
  <dl>
   
    <dt><code class="parameter">class</code></dt>
    <dd>
     <p class="para">
      The name of the class containing the function to copy
     </p>
    </dd>
   
   
    <dt><code class="parameter">function</code></dt>
    <dd>
     <p class="para">
      The name of the function
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.uopz-copy-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   A Closure for the specified function
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.uopz-copy-examples">
  <h3 class="title">Приклади</h3>
  <div class="example" id="example-1">
   <p><strong>Приклад #1 <span class="function"><strong>uopz_copy()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$strtotime </span><span style="color: #007700">= </span><span style="color: #0000BB">uopz_copy</span><span style="color: #007700">(</span><span style="color: #DD0000">'strtotime'</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">uopz_function</span><span style="color: #007700">(</span><span style="color: #DD0000">"strtotime"</span><span style="color: #007700">, function(</span><span style="color: #0000BB">$arg1</span><span style="color: #007700">, </span><span style="color: #0000BB">$arg2</span><span style="color: #007700">) use(</span><span style="color: #0000BB">$strtotime</span><span style="color: #007700">) {<br />    </span><span style="color: #FF8000">/* can call original strtotime from here */<br />    </span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$arg1</span><span style="color: #007700">);<br />});<br /><br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">strtotime</span><span style="color: #007700">(</span><span style="color: #DD0000">'dummy'</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>Поданий вище приклад
виведе:</p></div>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">string(5) &quot;dummy&quot;</pre>
</div>
   </div>
  </div>
 </div>


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