Home » Tag Archives:object

Tag Archives: object

PHP : Remove object from array

December 5, 2017 Php Leave a comment

Questions: What is an elegant way to remove an object from an array of objects in PHP ? Just to be clear .. class Data{ private $arrObservers; public add(Observer $o) { array_push($this->arrObserve...