CakeFest 2024: The Official CakePHP Conference

uopz_delete

(PECL uopz 1, PECL uopz 2)

uopz_deleteDelete a function

Aviso

Esta função foi REMOVIDA na uopz 5.0.0 no PECL.

Descrição

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

Deletes a function or method

Parâmetros

class

function

Valor Retornado

Exemplos

Exemplo #1 uopz_delete() example

<?php
uopz_delete
("strlen");

echo
strlen("Hello World");
?>

O exemplo acima produzirá algo semelhante a:

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

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

O exemplo acima produzirá algo semelhante a:

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

User Contributed Notes

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