PHP code example of multidimensional / xml-array

1. Go to this page and download the library: Download multidimensional/xml-array 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/ */

    

multidimensional / xml-array example snippets


use Multidimensional\XmlArray\XMLArray;

$xml = '<tag>Value</tag>';
$array = XMLArray::generateArray($xml);
print_r($array);

//$array = array("tag" => array(0 => 'Value'));