PHP_CompatInfo::removeListener()

PHP_CompatInfo::removeListener()  -- Removes a registered listener

Synopsis

require_once 'PHP/CompatInfo.php';

bool PHP_CompatInfo::removeListener (mixed $callback, string [$nName = EVENT_DISPATCHER_GLOBAL])

Description

Removes a registered listener that correspond to the given criteria.

Paramètres

mixed $callback

A PHP callback

chaîne de caractères $nName

(optional) Expected notification name

Valeur retournée

returns True if listener was removed, false otherwise.

Valeurs renvoyées

throws no exceptions thrown

Depuis

since version 1.8.0b3 (2008-06-07)

Note

Cette fonction ne peut pas être appelée de façon statique.

Exemple

see PHP_CompatInfo::addListener() example