at the moment I pass one of my functions an array like so

```
$inputs = array("FOOD" => "Pancake");

```

And then in my function I do something like the following

```
foreach ($inputs as $label => $data)
{
    echo ($label . $data);
}

```

The above is only an example I have just written so I hope it is correct. Anyways, the function which has that foreach loop also has the following within it

```
$this->SetFillColor(190,205,44);

```

Now for each loop, I also want to set the fill colour of the output. So I was thinking about doing something like the following instead

```
$inputs = array("FOOD" => array("Pancake", '190,205,44'));

```

If I var\_dump the array I am passing my function, I see

```
array:1 [▼
  "FOOD" => array:2 [▼
    0 => "PANCAKE"
    1 => "190,205,44"
  ]
]

```

So this all seems correct. Now in my function I do

```
foreach($inputs as $label => $data){
    foreach($data as $content => $colour) {

        $this->SetFillColor($colour);

        $this->Cell(65, 7, $label, 0, 0, 'L', 1, 0);
        $this->Cell(100, 7, $content, 0, 0, 'L', 1, 0);
    }
}

```

Now I have a couple of problems. Firstly, it seems to output two rows. The first cell prints out FOOD like it should do but the second cell prints out 0 (should be PANCAKE). The second row once again prints out FOOD, but the second cell prints out 1.

So how can I get it printing out just the first row? The other problem is $colour, because this is a string when it needs to be an int I think.

Any advice appreciated.

Thanks