title: Getting error using fat arrow function in php
body: <pre class="lang-php prettyprint-override"><code>$mul2 = fn($x) =&gt; $x * 2;
  $mul2(3); 
  </code></pre>
  
  <p>I  am getting an error :</p>
  
  <blockquote>
    <p>Error-  Unexpected =>,  Expected ';'.</p>
  </blockquote>
  
  <p>How do I resolve the error ?    </p>