Wrapping quotes around a php id in XML
<p>I've got this line of code:</p>

<pre><code>$xml_output .= "\t&lt;Event=" . $x . "&gt;\n";
</code></pre>

<p>And it will output:</p>

<pre><code>&lt;Event=0&gt;

&lt;Event=1&gt;

&lt;Event=2&gt;
</code></pre>

<p>etc etc through my loop.</p>

<p>I need it to output as this (with the quotes around the number):</p>

<pre><code>&lt;Event="0"&gt;

&lt;Event="1"&gt;

&lt;Event="2"&gt;
</code></pre>

<p>Any help, and I'm sure it's simple would be greatly appreciated!</p>
