No cache version.

Caching disabled. Default setting for this page:enabled (code LNG204)
If the display is too slow, you can disable the user mode to view the cached version.

Rechercher une fonction PHP

uopz_del_function

(PECL uopz 5, PECL uopz 6)

uopz_del_functionDeletes previously added function or method

Description

uopz_del_function ( string $function ) : bool
uopz_del_function ( string $class , string $function [, int &$all = TRUE ] ) : bool

Deletes a previously added function or method.

PHP: uopz_del_function - Manual Home of Manuel PHP  Contents Haut

Parameters

class

The name of the class.

function

The name of the function or method.

all

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

PHP: uopz_del_function - Manual Home of Manuel PHP  Contents Haut

Return Values

Returns TRUE on success or FALSE on failure.

PHP: uopz_del_function - Manual Home of Manuel PHP  Contents Haut

Errors/Exceptions

uopz_del_function() throws a RuntimeException if the function or method to delete has not been added by uopz_add_function().

PHP: uopz_del_function - Manual Home of Manuel PHP  Contents Haut

Examples

Example #1 Basic uopz_del_function() Usage

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

The above example will output:

bool(true)
bool(false)

PHP: uopz_del_function - Manual Home of Manuel PHP  Contents Haut

See Also

Find a PHP function
Error Infobrol

Can not display this page of the Infobrol website

Type of error (18-01)

Unknown format specifier "&"

Please try again in a few minutes…

Return to the home page




Steph