PHP automaticly parses my string?
Posted
by PlagueEditor
on Stack Overflow
See other posts from Stack Overflow
or by PlagueEditor
Published on 2010-06-12T05:37:14Z
Indexed on
2010/06/12
5:42 UTC
Read the original article
Hit count: 139
Some Background info: My web application stores some XML in a Text column of the MySQL database. This XML represents a transaction for the application.
The problem occurs when I'm testing my library. Within PHP, I have a string:
$s="<flist><transaction amount=\"10\" type=\"income\">Initial Amount</transaction></flist>";
However, whenever I echo or consecrate this string, it turns into "Initial Amount". Am I missing a feature of PHP? How can I fix this? Wow! As I'm creating this post, StackOverflow is transforming that XML into $s=Initial Amount as well... Please help... Thank-you for your time as this completely perplexes me.
© Stack Overflow or respective owner