Posted by Michael Fesser on 08/10/07 15:12
..oO(Pavel Lepin)
><?php
> error_reporting (E_ALL | E_STRICT) ;
> define ('MAX_ITEMS' , 3) ; $infoList = array () ;
> $doc = new DOMDocument () ; $doc->load ('split.xml') ;
> foreach
> (
> $infos = $doc->getElementsByTagName ('info') as $info
> )
> $infoList [] = $info->cloneNode (TRUE) ;
>[...]
Uh ... that's a very unconventional and confusing coding style with all
these blanks and unexpected line breaks hanging around ...
Micha
Navigation:
[Reply to this message]
|