Help with echo command PHP5
Posted: Sat Dec 19, 2009 7:17 pm
I am trying to create a text string that includes <item> and </item> in order to generate an xml file.
eg. echo "<item>" . "bicycle" . "</item>";
When I run the script the <item> and </item> disappears and the string returns only bicycle. I assume they are being interpreted as an HTML tag. How do I create a string that would output the 'tags' as part of the ascii string? ie:
<item> bicycle </item>
Thanks
eg. echo "<item>" . "bicycle" . "</item>";
When I run the script the <item> and </item> disappears and the string returns only bicycle. I assume they are being interpreted as an HTML tag. How do I create a string that would output the 'tags' as part of the ascii string? ie:
<item> bicycle </item>
Thanks