I have this php script and i want to use the </br> tag so its not a single line when showing the XML text.
Where do i put it?
<?php
$file = "pet.xml";
$xml = simplexml_load_file($file) or die ("Unable to load XML file!");
echo "Name: " . $xml->name . "\n";
echo "Age: " . $xml->age . "\n";
echo "Species: " . $xml->species . "\n";
echo "Parents: " . $xml->parents->mother . " and " . $xml->parents->father . "\n";
?>


Sign In
Create Account


Back to top









