note 66825 deleted from function.xml-parse by bjori

From: Date: Tue, 30 May 2006 18:53:39 +0000
Subject: note 66825 deleted from function.xml-parse by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-112560@lists.php.net to get a copy of this message
Note Submitter: chris at postal-code dot com Reason: bad code ---- The code below was throwing errors for me with nodes that don't have children so I added the following: if ( array_key_exists( "childrens", $tob[$c] ) ) { if( count( $tob[$c]["childrens"] ) > 0 ) { //$result .= "\r\n" . $this->toXML( &$tob[$c]["childrens"] ) . ""; $result .= "\r\n" . $this->toXML( $tob[$c]["childrens"] ) . ""; } } Caveat emptor

« previous php.notes (#112560) next »