function as parametr in function
<p>I need give function as argument function. 
For example</p>

<pre><code>&lt;i&gt;$smoothFunc = smooth(function ($sum) {
  return sin(rad2deg($sum));
}, 15);
</code></pre>

<p>$smoothFunc(10) // ~ 0.438</p>

<p>How i can do this?</p>

<p>This code not work</p>

<pre><code>$arg1=function($a,$b){
  return $a+$b;
};

function smoothFunc($arg1, $dx){
  return $f1($a,$b)+$dx;
};

echo (smoothFunc(arg1(2,3),1));*/
</code></pre>