```
for($i = 0; $i <= 7; $i++)
    if(!empty($room_ID.($i+1)) 
     && !empty($date_from.($i+1)) 
     && !empty($date_to.($i+1)) )

```

I have 8x3 integers.. Id like to know if there is a way to loop thru all of them with a for loop like giving $i to the end of the integer names like so:

```
room_ID1
room_ID2
date_from1
date_from2
etc..

```

Best answer would be in php, but i could use anything!