JavaScript style wrapping in PHP
<p>I'm primarily a JS developer, using PHP for that server-side kick and I'm looking to see if there's an method in PHP similar to the JS:</p>

<pre><code>var something = {
    action1: function() { alert('Fire 1!'); },
    action2: function() { alert('Fire 2!'); },
    action3: function() { alert('Fire 3!'); }
}
</code></pre>

<p>Then allowing me to call like:</p>

<pre><code>something.action2();  // Alerts 'Fire 2!'
</code></pre>

<p>It's for a relatively small app I'm working on and I'd like to avoid building classes. Since PHP is such a small part I'd like to keep it as similar in code-style as possible.</p>
