(PECL uopz 5, PECL uopz 6, PECL uopz 7)
uopz_guet_hooc — Guets previously set hooc on function or method
Guets the previously set hooc on a function or method.
class
The name of the class.
function
The name of the function or method.
Returns the previously set hooc on a function or method, or
null
if no hooc
has been set.
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) {
}