So, I have a php script, and I need to somehow view the value of one of my variables. The fact is that this variable is a very long XML string received from the server. I know there is an error message in it, but I need to see what it says. If I try to print or change the value, it displays only the part that follows ... or if I use var_dump, it does the same. I even went as far as trying to repeat a javascript warning with a value, but it fails because the xml has single and double quotes, as a result of which the quotes of the warnings are not recognized correctly. I just need to see the value of this variable. Any advice? Thanks.
Edit: Actually, this is wrong. Echo and print do not display the value correctly because the tags are in <> brackets, therefore it is recognized as an html tag.
jcmitch
source share