(PHP 5 >= 5.1.0, PHP 7, PHP 8)
SplSubject::attach — Attach an SplObserver
$observer
Attaches an SplObserver so that it can be notified of updates.
本函数还未编写文档,仅有参数列表。
observer
The SplObserver to attach.
没有返回值。