Parse error: syntax error, unexpected T_FUNCTION on line 1? Why this type of function gives error in the server?
<p>My function is:</p>

<pre><code>$cb = function() use ( $a, $b ){
        ..........
        return $string;
}
</code></pre>

<p>Output: </p>

<blockquote>
  <p>Parse error: syntax error, unexpected T_FUNCTION on line no ..</p>
</blockquote>

<p>Why does this type of function give an error in the server?</p>
