title: Anonymous recursive PHP functions
body: <p>Is it possible to have a PHP function that is both recursive and anonymous? This is my attempt to get it to work, but it doesn't pass in the function name.</p>
  
  <pre><code>$factorial = function( $n ) use ( $factorial ) {
      if( $n &lt;= 1 ) return 1;
      return $factorial( $n - 1 ) * $n;
  };
  print $factorial( 5 );
  </code></pre>
  
  <p>I'm also aware that this is a bad way to implement factorial, it's just an example.</p>