Wrapping quotes around a php id in XML
Posted
by Simon Hume
on Stack Overflow
See other posts from Stack Overflow
or by Simon Hume
Published on 2010-03-15T22:49:16Z
Indexed on
2010/03/15
22:59 UTC
Read the original article
Hit count: 246
php
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!
© Stack Overflow or respective owner