Parse error: syntax error, unexpected T_STRING in /home/a2847095/public_html/logout.php on line 7
<pre><code>&lt;?php
  session_start();
  if (isset($_SESSION['logged-in'])) {
     unset($_SESSION['logged-in']);
  }

  header('Location: login.php');
?&gt;
</code></pre>

<p>i am very new to php , and learning to create a simple php login/logout system
everything was going smoothly until i pressed the logout button, wherein the error occurred, any help would be appreciated</p>
