uopz_delete(3) php man page | unix.com

Man Page: uopz_delete

Operating Environment: php

Section: 3

UOPZ_DELETE(3)								 1							    UOPZ_DELETE(3)

uopz_delete - Delete a function

SYNOPSIS
void uopz_delete (string $class, string $function)
DESCRIPTION
void uopz_delete (string $function) Deletes a function or method
PARAMETERS
o $class - o $function -
RETURN VALUES
EXAMPLES
Example #1 uopz_delete(3) 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(3) 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 PHP Documentation Group UOPZ_DELETE(3)
Related Man Pages
get_class(3) - php
forward_static_call(3) - php
forward_static_call_array(3) - php
strlen(3) - php
uopz_function(3) - php
Similar Topics in the Unix Linux Community
New Code Tags (Syntax Highlighting)
Please Welcome Don Cragun as Lead Moderator
Status of UNIX.COM Forum Transformation
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
Please Welcome Nicki Paul to the Moderator Team!