title: How do I call a function with parameters stored in an array?
body: <p>I have an array of functions:</p>
  
  <pre><code>$functions = array(
      "sum" =&gt; function($v1, $v2) {
          $s = $v1 + $v2;
          return $s;
      }
  );
  </code></pre>
  
  <p>Now, I'm confused about how to call this specific function - </p>
  
  <pre><code>echo $functions["sum"](1,2); //suppose to echo 3
  </code></pre>
  
  <p>doesn't work.</p>