<?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 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.uopz-del-function.php',
    1 => 'uopz_del_function',
    2 => 'Deletes previously added function or method',
  ),
  'up' => 
  array (
    0 => 'ref.uopz.php',
    1 => 'Uopz 関数',
  ),
  'prev' => 
  array (
    0 => 'function.uopz-copy.php',
    1 => 'uopz_copy',
  ),
  'next' => 
  array (
    0 => 'function.uopz-delete.php',
    1 => 'uopz_delete',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/uopz/functions/uopz-del-function.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.uopz-del-function" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">uopz_del_function</h1>
  <p class="verinfo">(PECL uopz 5, PECL uopz 6, PECL uopz 7)</p><p class="refpurpose"><span class="refname">uopz_del_function</span> &mdash; <span class="dc-title">Deletes previously added function or method</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.uopz-del-function-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>uopz_del_function</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.boolean.php" class="type bool">bool</a></span></div>

  <div class="methodsynopsis dc-description"><span class="methodname"><strong>uopz_del_function</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="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter reference">&$all</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Deletes a previously added function or method.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.uopz-del-function-parameters">
  <h3 class="title">パラメータ</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>
   
   
    <dt><code class="parameter">all</code></dt>
    <dd>
     <p class="para">
      Whether all classes that descend from <code class="parameter">class</code> will
      also be affected.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.uopz-del-function-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   成功した場合に <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> を、失敗した場合に <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返します。
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.uopz-del-function-errors">
  <h3 class="title">エラー / 例外</h3>
  <p class="para">
   <span class="function"><strong>uopz_del_function()</strong></span> throws a <span class="classname"><a href="class.runtimeexception.php" class="classname">RuntimeException</a></span>
   if the function or method to delete has not been added by <span class="function"><a href="function.uopz-add-function.php" class="function">uopz_add_function()</a></span>.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.uopz-del-function-examples">
  <h3 class="title">例</h3>
  <div class="example" id="uopz-del-function.example.basic">
   <p><strong>例1 Basic <span class="function"><strong>uopz_del_function()</strong></span> Usage</strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />uopz_add_function</span><span style="color: #007700">(</span><span style="color: #DD0000">'foo'</span><span style="color: #007700">, function () {echo </span><span style="color: #DD0000">'bar'</span><span style="color: #007700">;});<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">function_exists</span><span style="color: #007700">(</span><span style="color: #DD0000">'foo'</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">uopz_del_function</span><span style="color: #007700">(</span><span style="color: #DD0000">'foo'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">function_exists</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>上の例の出力は以下となります。</p></div>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">bool(true)
bool(false)</pre>
</div>
   </div>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.uopz-del-function-seealso">
  <h3 class="title">参考</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.uopz-add-function.php" class="function" rel="rdfs-seeAlso">uopz_add_function()</a> - Adds non-existent function or method</span></li>
   <li><span class="function"><a href="function.uopz-unset-return.php" class="function" rel="rdfs-seeAlso">uopz_unset_return()</a> - Unsets a previously set return value for a function</span></li>
  </ul>
 </div>


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