php8.5
Home/ Manual/ spl / splsubject/ SplSubject::detach

SplSubject::detach

PHP function Edit on GitHub ✎

(PHP 5 >= 5.1.0, PHP 7, PHP 8)

Detach an observer

Description

SplSubject::detach(SplObserver $observer): void

Detaches an observer from the subject to no longer notify it of updates.

Func

Parameters

observer

The SplObserver to detach.

Return Values

Void

Source: reference/spl/splsubject/detach.xml · from the official PHP manual (php/doc-en)