note 32382 added to function.strstr

From: Date: Mon, 26 May 2003 11:19:33 +0000
Subject: note 32382 added to function.strstr
Groups: php.notes 
Request: Send a blank email to php-notes+get-49025@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/function.strstr.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32382 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32382&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32382&report=yes

« previous php.notes (#49025) next »