UOPZ_BACKUP(3) 1 UOPZ_BACKUP(3)
uopz_backup - Backup a function
SYNOPSIS
void uopz_backup (string $class, string $function)
DESCRIPTION
void uopz_backup (string $function)
Backup a function at runtime, to be restored on shutdown
PARAMETERS
o $class
- The name of the class containing the function to backup
o $function
- The name of the function
RETURN VALUES
EXAMPLES
Example #1
uopz_backup(3) example
<?php
uopz_backup("fgets");
uopz_function("fgets", function(){
return true;
});
var_dump(fgets());
?>
The above example will output something similar to:
bool(true)
PHP Documentation Group UOPZ_BACKUP(3)