PHP.nl

uopz_del_function

uopz_del_function

Deletes previously added function or method

bool **uopz_del_function** string $function
bool **uopz_del_function** string $class string $function int $all

Deletes a previously added function or method.

classThe name of the class.

functionThe name of the function or method.

all Whether all classes that descend from will also be affected. class

return.success

throws a 

if the function or method to delete has not been added by . uopz_del_function``RuntimeException``uopz_add_function

Voorbeeld: Basic Usage

<?php
uopz_add_function('foo', function () {echo 'bar';});
var_dump(function_exists('foo'));
uopz_del_function('foo');
var_dump(function_exists('foo'));
?>
bool(true)
bool(false)

uopz_add_function``uopz_unset_return