php8.5
Home/ Manual/ spl / splobserver/ SplObserver::update

SplObserver::update

PHP function Edit on GitHub ✎

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

Receive update from subject

Description

SplObserver::update(SplSubject $subject): void

This method is called when any SplSubject to which the observer is attached calls SplSubject::notify.

Func

Parameters

subject

The SplSubject notifying the observer of an update.

Return Values

Void

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