Wrapping quotes around a php id in XML
- by Simon Hume
I've got this line of code:
$xml_output .= "\t<Event=" . $x . ">\n";
And it will output:
<Event=0>
<Event=1>
<Event=2>
etc etc through my loop.
I need it to output as this (with the quotes around the number):
<Event="0">
<Event="1">
<Event="2">
Any help, and I'm sure it's simple would be greatly appreciated!