PHP code example of muhittingulap / xml-parse
1. Go to this page and download the library: Download muhittingulap/xml-parse library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
muhittingulap / xml-parse example snippets
XML\libraries\xml();
$xml->setUrl($url) // Xml url
->setParentAttr("product"); // Example repeat parent attr
$return = $xml->getKeys(); // Get array xml attr keys