Hi,
I have an XML file and I need to add some values into it, e.g.
$header_value = "test";
$xmlString = "<agentXML> <header> $header_value; </header>";
How can I substitue $header_value in $xmlString to test?
Thank you.
$xmlString = "<agentXML>\n<header>\n".$header_value."</header>";
would work
as would your way in theory - close the " and append with .