I've two arrays:

```
$arrInfoComment; 

```

Array contains ID of commented user and Comment. (For instance: 2 comments)

```
$arrInfoExpert;

```

Array contains ID of users. (3 users)

I'm looping arrays with foreach and printing them out of loop.
How can I put an empty `<td>-</td>` if user not commented?

```
$expComm = '';
foreach($arrInfoComment as $comExperts){
    foreach($arrInfoExpert as $ExpertID){
        if($comExperts['ID'] == $ExpertID){
            $expComm .= '<td><p>'.$comExperts['COMMENT'].'</p></td>';
        }
    }
}
echo $expComm;

```

Structure of $arrInfoComment

```
Array
(
    [0] => Array
        (
            [ID] => 5
            [COMMENT] => Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam vestibulum elementum libero, at laoreet risus sodales at. .
        )
    [1] => Array
        (
            [ID] => 3
            [COMMENT] => Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam vestibulum elementum libero, at laoreet risus sodales at. .
        )
)

```

Structure of $arrInfoExpert

```
Array
(
    [0] => 5
    [1] => 3
    [2] => 4
)

```

Attached screenshot of last result that I want to achieve.
![enter image description here](https://i.stack.imgur.com/JPlyg.jpg)
Thanks.