note 80519 deleted from function.xml-parser-create by danbrown
| From: | danbrown@php.net | Date: | Mon, 04 Aug 2008 19:15:14 +0000 |
| Subject: | note 80519 deleted from function.xml-parser-create by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-143145@lists.php.net to get a copy of this message | ||
Note Submitter: jonathancnewcomb at msn dot com
----
The above script doesnt parse very well for large (over 1000 tags) xml files because the foreach()
uses a lot of memory. To solve the problem, replace foreach() with a for(), since for loops do not
use near as much memory as the foreach. All in all though, very handy script