note 72364 deleted from function.explode by nlopess
| From: | nlopess@php.net | Date: | Fri, 13 Jul 2007 19:11:20 +0000 |
| Subject: | note 72364 deleted from function.explode by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-128460@lists.php.net to get a copy of this message | ||
Note Submitter: Alex
----
I was using explode("\n", $string) to split a huge string (~ 0,5 MB). This took about 15
minutes to complete!
Using strtok($string, "\n") (followed by several thousand strtok("\n") of
course), the same splitting is done in less than a minute.