I keep getting the error: Parse error: syntax error, unexpected 'sNameâ€' (T_STRING), expecting ']'on line 5 I need some help solving this problem. Could anyone tell me what's wrong with my code?
<!DOCTYPE html>
<?php
$data = array [
["sName” => “Gervase”, "sNumber" => "s1234567", "mark” => 95, “comments” => “Well done!”],
["sName” => “Matt”, "sNumber" => "s1234567", "mark” => 95, “comments” => “Well done!”],
["sName” => “Kid”, "sNumber" => "s1234567", "mark” => 95, “comments” => “Well done!”],
["sName” => “Nathan”, "sNumber" => "s1234567", "mark” => 85, “comments” => “Well done!”]
]
?>
<html>
<head>
<link type='text/css' rel='stylesheet' href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"/>
</head>
<body>
<div>
<div class="jumbotron">
<div>
<div class="container">
<h1>Data</h1>
</div>
<div>
<div class="container">
<table>
<table class="table">
<thead>
<?php
foreach ($data as $data)
{
echo"<tr>";
echo"<td>".$data["sName"]."</td>";
echo"<td>".$data["sNumber"]."</td>";
echo"</tr>";
}
?>
<tr>
<th>Student number</th>
<th>Student name</th>
<th>Mark</th>
<th>Comments</th>
</tr>
<tr>
<td>Something</td>
</tr>
</thead>
</table>
</div<
</div>
</body>