Query: uopz_copy
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
UOPZ_COPY(3) 1 UOPZ_COPY(3) uopz_copy - Copy a functionSYNOPSISClosure uopz_copy (string $class, string $function)DESCRIPTIONClosure uopz_copy (string $function) Copy a function by namePARAMETERSo $class - The name of the class containing the function to copy o $function - The name of the functionRETURN VALUESA Closure for the specified functionEXAMPLESExample #1 uopz_copy(3) example <?php $strtotime = uopz_copy('strtotime'); uopz_function("strtotime", function($arg1, $arg2) use($strtotime) { /* can call original strtotime from here */ var_dump($arg1); }); var_dump(strtotime('dummy')); ?> The above example will output something similar to: string(5) "dummy" PHP Documentation Group UOPZ_COPY(3)
Related Man Pages |
---|
pgfouine(1) - debian |
class_alias(3) - php |
var_dump(3) - php |
dateinterval.createfromdatestring(3) - php |
reflectionclass.getshortname(3) - php |
Similar Topics in the Unix Linux Community |
---|
Rules for Homework & Coursework Questions Forum |
New Code Tags (Syntax Highlighting) |
Please Welcome Don Cragun as Lead Moderator |
Please Welcome Ravinder Singh to the Moderation Team |