title: Creating and invoking an anonymous function in a single statement
body: <p>A php closure or anonymous function is used to create function without specifying its name.</p>
  
  <p>Is it possible to call them without assigning to identifier as we do in JavaScript ?
  e.g.</p>
  
  <pre><code>(function(){
      echo('anonymous function');
  })();
  </code></pre>
  
  <p>What is the correct use of <code>use</code> construct while defining anonymous function and what is the status of anonymous function in public method with accessibility to private properties?</p>
  
  <pre><code>$anon_func = 
  function($my_param) use($this-&gt;object_property){ //use of $this is erroneous here
      echo('anonymous function');
  };
  </code></pre>