uopz_delete
uopz_delete
Delete a function
void **uopz_delete** string $function
void **uopz_delete** string $class string $function
Deletes a function or method
class
function
Voorbeeld: example
<?php
uopz_delete("strlen");
echo strlen("Hello World");
?>
PHP Fatal error: Call to undefined function strlen() in /path/to/script.php on line 4
Voorbeeld: class example
<?php
class My {
public static function strlen($arg) {
return strlen($arg);
}
}
uopz_delete(My::class, "strlen");
echo My::strlen("Hello World");
?>
PHP Fatal error: Call to undefined method My::strlen() in /path/to/script.php on line 10