worked test it
<?php
$arr = [
["Company 1", "Address 1,City", "2017-04-05", "12/015", "Link"],
["Company 3", "Address 1,City", "2017-04-05", "12/015", "Link,Link,Link,Link"]
];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Example of Bootstrap 3 Modals</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".btn").click(function(){
$("#myModal").modal('show');
});
});
</script>
<style type="text/css">
.bs-example{
margin: 20px;
}
</style>
</head>
<body>
<div class="bs-example">
<!-- Button HTML (to Trigger Modal) -->
<a href="#" class="btn btn-lg btn-primary">Launch Demo Modal</a>
<!-- Modal HTML -->
<div id="myModal" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<table>
<tr>
<th>name</th>
<th>address</th>
<th>date</th>
<th>data</th>
<th>links</th>
</tr>
<tr>
<?php foreach ($arr as $value): ?>
<tr>
<td><?= $value[0]; ?></td>
<td><?= $value[1]; ?></td>
<td><?= $value[2]; ?></td>
<td><?= $value[3]; ?></td>
<td>
<?php if (strpos($value[4], ',') == false AND ! empty($value[4])): ?>
<a href="<?= $value[4]; ?>">link name</a>
<?php else: ?>
<?php $links = explode(',', $value[4]); ?>
<?php foreach ($links as $link): ?>
<a href="<?= $link; ?>">link name</a>
<?php endforeach; ?>
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
</table>
<table>
</table>
</div>
</div>
</div>
</div>
</body>
</html>