Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for Zend Encoder/SafeGuard & PhpExpress)
- *
- * @ Version : 1.1.6.0
- * @ Author : DeZender
- * @ Release on : 02.06.2013
- * @ Official site : http://DeZender.Net
- *
- */
- class XMLToArray {
- public $parser = null;
- public $node_stack = array( );
- /** PUBLIC
- * If a string is passed in, parse it right away.
- */
- public function XMLToArray($cdiegbjedd = '') {
- if ($cdiegbjedd) {
- return $this->parse( $cdiegbjedd );
- }
- return true;
- }
- /** PUBLIC
- * Parse a text string containing valid XML into a multidimensional array
- * located at rootnode.
- */
- public function parse($cdiegbjedd = '') {
- $this->parser = xml_parser_create( );
- xml_set_object( $this->parser, $this );
- xml_parser_set_option( $this->parser, XML_OPTION_CASE_FOLDING, false );
- xml_set_element_handler( $this->parser, 'startElement', 'endElement' );
- xml_set_character_data_handler( $this->parser, 'characterData' );
- $this->node_stack = array( );
- ........................................................................
- .......................................
- ..............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement