public function deleteEntryByKeyId($keyId) { foreach ($this->arr as $i => $entry) { if ($entry['key'] == $keyId) { unset($this->arr[$i]); break; } } }