PHP.nl

uopz_unset_return

uopz_unset_return

Unsets a previously set return value for a function

bool **uopz_unset_return** string $function
bool **uopz_unset_return** string $class string $function

Unsets the return value of the previously set by . function``uopz_set_return

classThe name of the class containing the function

functionThe name of the function

True on success

Voorbeeld: example

<?php
uopz_set_return("strlen", 42);
$len = strlen("Banana");
uopz_unset_return("strlen");
echo $len + strlen("Banana");
?>
48