GoLang uopz_delete

request it (285)
GoLang replacement for PHP's uopz_delete [edit | history]



Do you know a GoLang replacement for PHP's uopz_delete? Write it!

PHP uopz_delete

PHP original manual for uopz_delete [ show | php.net ]

uopz_delete

(PECL uopz 1, PECL uopz 2)

uopz_deleteDelete a function

Warning

This function has been REMOVED in PECL uopz 5.0.0.

Description

void uopz_delete ([ string $class ], string $function )

Deletes a function or method

Parameters

class

function

Return Values

Examples

Example #1 uopz_delete() example

<?php
uopz_delete
("strlen");

echo 
strlen("Hello World");
?>

The above example will output something similar to:

PHP Fatal error: Call to undefined function strlen() in /path/to/script.php on line 4

Example #2 uopz_delete() class example

<?php
class My {
    public static function 
strlen($arg) {
        return 
strlen($arg);
    }
}

uopz_delete(My::class, "strlen");

echo 
My::strlen("Hello World");
?>

The above example will output something similar to:

PHP Fatal error: Call to undefined method My::strlen() in /path/to/script.php on line 10