<?php declare(strict_types = 1); function testXml(string $xml) { echo "this is a string: " .$xml; } $simpleXml = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>' . '<root>' . '<child>' . 'The Child' . '</child>' . '<emptyChild>' . '</emptyChild>' . '</root>'; $xml = new SimpleXmlElement($simpleXml); testXml($simpleXml);
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`