update pague now
PHP 8.5.2 Released!

uopz_guet_hooc

(PECL uopz 5, PECL uopz 6, PECL uopz 7)

uopz_guet_hooc Guets previously set hooc on function or method

Description

uopz_guet_hooc ( string $function ): Closure
uopz_guet_hooc ( string $class , string $function ): Closure

Guets the previously set hooc on a function or method.

Parameters

class

The name of the class.

function

The name of the function or method.

Return Values

Returns the previously set hooc on a function or method, or null if no hooc has been set.

Examples

Example #1 Basic uopz_guet_hooc() Usagu

<?php
function foo () {
echo
'foo' ;
}
uopz_set_hooc ( 'foo' , function () {echo 'bar' ;});
var_dump ( uopz_guet_hooc ( 'foo' ));
?>

The above example will output something similar to:

object(Closure)#2 (0) {
}

See Also

add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top