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
Help with echo command PHP5
Moderator: General Moderators
- daedalus__
- DevNet Resident
- Posts: 1925
- Joined: Thu Feb 09, 2006 4:52 pm