From 687bcc62c1545cb36ad9e09c12cb996f8135b6df Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Mon, 20 Jan 2003 19:59:29 +0000 Subject: [PATCH] Bug # 18705. Encourage use of strpos over strstr when only verifying existence of needle in haystack. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@112829 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/strstr.xml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/reference/strings/functions/strstr.xml b/reference/strings/functions/strstr.xml index 494b8b5e48..060a300fea 100644 --- a/reference/strings/functions/strstr.xml +++ b/reference/strings/functions/strstr.xml @@ -1,5 +1,5 @@ - + @@ -43,6 +43,15 @@ print $domain; // prints @example.com + + + + If you only want to determine if a particular needle + occours within haystack, use the faster and less memory + intensive function strpos instead. + + + See also ereg, preg_match, strchr, stristr,