Storing function in session variable
<p>Is it possible to store an anonymous function in a session var and use it later on?</p>

<p>For instance:</p>

<pre><code>$func = "echo $str;";
$_SESSION['myfunc'] = create_function('$str',$func);
</code></pre>

<p>When I call <code>$_SESSION['myfunc']('Hello')</code> it works fine on the page it is created in. When called in another page however, I get the error </p>

<blockquote>
  <p>Call to undefined function()</p>
</blockquote>

<p>The other session-vars are available, so that's not the problem. In the session data I see a reference to a lambda, but I can't get it to work.</p>
