avatar
delete object from array PHP
$this->arrAddresses = [object1, object2, object3, ...];
$this->id = $object1->id;
foreach ($this->arrAddresses as $key => $item) {
    if ($item->id == $this->id) unset($this->arrAddresses[$key]);
}
console.log($this->arrAddresses);
24
remove invalid elements from array in PHP split strings into arrays in JavaScript using comma unique object in array
You need to login to do this manipulation!