I already read/saw
simplexml_load_string() to load a xml string into a variable.
But how can I load a xml file into a variable?
<note> <FirstName>Ana</FirstName> <LastName>Ivonic</LastName> <heading>Resume</heading> <body>Interview</body> </note>
How can I print the first and last name as full name concatenated ?
So I already have this to load a string:
$XML = simplexml_load_string($string);
And then I use:
Now how can I load a xml file (not a string) and concatenate the first and last name and print it?