PHP.nl

uopz_get_return

uopz_get_return

Gets a previous set return value for a function

mixed **uopz_get_return** string $function
mixed **uopz_get_return** string $class string $function

Gets 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

The return value or Closure previously set.

Voorbeeld: example

<?php
uopz_set_return("strlen", 42);
echo uopz_get_return("strlen");
?>
42