array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.uopz-get-return.php', 1 => 'uopz_get_return', ), 'up' => array ( 0 => 'ref.uopz.php', 1 => 'Uopz 函数', ), 'prev' => array ( 0 => 'function.uopz-get-property.php', 1 => 'uopz_get_property', ), 'next' => array ( 0 => 'function.uopz-get-static.php', 1 => 'uopz_get_static', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/uopz/functions/uopz-get-return.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL uopz 5, PECL uopz 6, PECL uopz 7)
uopz_get_return — Gets a previous set return value for a function
Gets the return value of the function
previously set by uopz_set_return().
class
The name of the class containing the function
function
The name of the function
The return value or Closure previously set.
示例 #1 uopz_get_return() example
<?php
uopz_set_return("strlen", 42);
echo uopz_get_return("strlen");
?>
以上示例会输出:
42