note 13167 deleted from function.strtok by nlopess
| From: | nlopess@php.net | Date: | Sun, 08 May 2005 07:48:47 +0000 |
| Subject: | note 13167 deleted from function.strtok by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-89109@lists.php.net to get a copy of this message | ||
Note Submitter: rbronosky at mac dot com
----
The reason for using strtok() is to avoid needlessly duplicating data. If you have a string with
the complete data in it, then why duplicate it into an array. This takes time and system resources.
I know it does not seem like a big deal. But with lots of traffic, or with a large string (ie.
$str=fread($A_500k_File); ) the efficiency is extremely important.
Efficiency being something that MS Windows users are not accustomed to anyway.
-- for REAL power develop using MacOS, BBEdit, and PHP. The "Holy Trinity"!
-Bruno