title: Expecting statement after if
body: <p>It is my code:</p>
  
  <pre><code>&lt;?php
     if (empty($_COOKIE["count"]) &amp;&amp; empty($_COOKIE["date"])) {
        setcookie("count",1);
        setcookie("date",date("d.m.y H:i"));
     } else {
        var $c=$_COOKIE["count"];
     }
  ?&gt;
  </code></pre>
  
  <p>And I get error: <strong>expecting statement</strong> before var $c. How can I solve my problem?</p>