R
R
run1822016-11-07 12:40:08
PHP
run182, 2016-11-07 12:40:08

Why does php cut end tags from xml?

$putdata = '<ДатаВремя>05.11.2016 0:00:00</ДатаВремя>';
echo $putdata;

Result: <DateTime>05.11.2016 0:00:00
And how can I fix it in order to parse a string with xml data?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nazar Mokrinsky, 2016-11-07
@run182

PHP does not cut out such tags, it's too early for it to print, run the specified code yourself and see.
It's your problem somewhere else.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question