I have and array of numbers which I can retrieve as follows:

```
foreach ($this->items as $item) {
    $this->something += ($this->dels[$item]) ;
}

```

what this does is adds all the `$this->dels[$item]` values up, however I would like to get the highest value from this and then use it. I have tried the following:

```
foreach ($this->items as $item) {
    $this->something = max($this->dels[$item]);
}

```

however this returns `$this->something` = 0
any help welcome