src/XML/Reader.php
public function readFile(string $file_name)
    {
        $reader = new XMLReader;
        $reader->open($file_name);

        $data = $this->toArray($reader);
        $reader->close();

        return $data;
    }
public function readFile(string $file_name)
    {
        $reader = new XMLReader;
        $reader->open($file_name);

        $data = $this->toArray($reader);
        $reader->close();

        return $data;
    }
public function readFile ( string $ file_name ) { $ reader = new XMLReader ; $ reader -> open ( $ file_name ) ; $ data = $ this -> toArray ( $ reader ) ; $ reader -> close ( ) ; return $ data ; }
Read a XML file into an array

@param string $filename The file to read
@return array The array representation of the XML Data
Read a XML file into an array