uopz_delete

(PECL uopz >= 1.0.0)

uopz_deleteDelete a function

설명

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

Deletes a function or method

인수

class

function

반환값

예제

Example #1 uopz_delete() 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

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");
?>

위 예제의 출력 예시:

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

User Contributed Notes

There are no user contributed notes for this page.
To Top