There's probably an easy answer to this, but I just haven't been able to get my head around it.

I have the following array:

```
Array
(
    [0] => Array
        (
            [meeting_grouping] => 1
            [client_first_name] => Nikolay
        )

    [1] => Array
        (
            [meeting_grouping] => 1
            [client_first_name] => Konstantin
        )

    [2] => Array
        (
            [meeting_grouping] => 1
            [client_first_name] => Andrey
        )

    [3] => Array
        (
            [meeting_grouping] => 4
            [client_first_name] => Eddie
        )

    [4] => Array
        (
            [meeting_grouping] => 4
            [client_first_name] => Neil
        )

    [5] => Array
        (
            [meeting_grouping] => 6
            [client_first_name] => Ian
        )

    [6] => Array
        (
            [meeting_grouping] => 6
            [client_first_name] => Mark
        )
)

```

What I would like to do is output this data to an HTML table and colour code the rows. I know how to alternate the row colours, but in this case I need it to be colour coded based on the 'meeting\_grouping'. I.e. Nikolay, Konstantin and Andrey (meeting\_grouping = 1) would have a grey background, Eddie and Neil (meeting\_grouping = 4) would have a white background and Ian and Mark (meeting\_grouping = 6) would have a grey background again.

If someone could point me in the right direction it would be much appreciated.

Thanks in advance!