Is there a single execution function in php like in js
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3568410/anonymous-functions-that-execute-immediately">Anonymous functions that execute immediately</a>  </p>
</blockquote>



<p>javascript code:</p>

<pre><code>(function(){
  var msg = 'Hello World';
  console.log(msg);
})();
</code></pre>

<p>Is there an equivalent way to do this in php?</p>
