new/method chaining in PHP
<p>I've written some object-orientated PHP5 code, but it won't parse and I'm not wholly sure why. I've used method chains to simplify a lot of it- and it looks like this</p>

<pre><code>$head-&gt;AddTag(new Tag('meta')-&gt;Extras('http-equiv="Content-Type" content="text/html; charset=utf-8"'));
</code></pre>

<p>Apparently, it has unexpected <code>T_OBJECT_OPERATOR</code>. This seems perfectly valid to me- where's the problem?</p>
