array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'function.uopz-delete.php', 1 => 'uopz_delete', ), 'up' => array ( 0 => 'ref.uopz.php', 1 => 'Uopz Funktionen', ), 'prev' => array ( 0 => 'function.uopz-del-function.php', 1 => 'uopz_del_function', ), 'next' => array ( 0 => 'function.uopz-extend.php', 1 => 'uopz_extend', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/uopz/functions/uopz-delete.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL uopz 1, PECL uopz 2)
uopz_delete — Delete a function
Diese Funktion wurde mit PECL uopz 5.0.0 ENTFERNT.
Deletes a function or method
class
function
Beispiel #1 uopz_delete() example
<?php
uopz_delete("strlen");
echo strlen("Hello World");
?>
Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
PHP Fatal error: Call to undefined function strlen() in /path/to/script.php on line 4
Beispiel #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");
?>
Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
PHP Fatal error: Call to undefined method My::strlen() in /path/to/script.php on line 10