This is what I'm trying to do.

---

There's a `row`, called `Price`. **Some rows** include a range of numbers, like 200-300, or 650-700.

---

Currently, I echo `$row["Price"]`.

I'm trying to show each row that contains a range as a single number, like a `650-700` `row` show as `675`.

I understand `avg` function, but how can I make it understand my format of `number1-number2`?

Thanks !

---

Final Edit: Thanks to everyone for their contribution.

My final solution was to make a `PriceMin` and `PriceMax` column via using determinator in excel for the tables, and do it like that.

Thanks !