note 32382 deleted from function.strstr by pollita
| From: | pollita@php.net | Date: | Sat, 02 Aug 2003 04:14:05 +0000 |
| Subject: | note 32382 deleted from function.strstr by pollita | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-53188@lists.php.net to get a copy of this message | ||
Note Submitter: bgw@globe.net.nz
----
Note: The documentation says 'If you only want to determine if a particular needle occurs
within haystack, use the faster and less memory intensive function strpos() instead.'
Remember, strpos() is case sensitive(The documentation does not warn of this), so case handling may
be required in addition.
So you should give some consideration of efficiency in your choice of strstr(), stristr(), and
strpos() and their respective nuances. strstr() may not be so bad after all.
Regards,
Brett.