SplSubject::detach

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

SplSubject::detachDetach an observer

說明

public SplSubject::detach(SplObserver $observer): void

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

警告

本函數(shù)還未編寫文檔,僅有參數(shù)列表。

參數(shù)

observer

The SplObserver to detach.

返回值

沒有返回值。