From ad44aca38e6372fb15e15383af1d48c53bfbc123 Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Thu, 20 Feb 2003 16:40:20 +0000 Subject: [PATCH] Expand example, remove old example, use &return.falseproblem; and see also stripos() git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@117355 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/strpos.xml | 50 ++++++++++++++------------ 1 file changed, 27 insertions(+), 23 deletions(-) diff --git a/reference/strings/functions/strpos.xml b/reference/strings/functions/strpos.xml index 6d50873525..4669959112 100644 --- a/reference/strings/functions/strpos.xml +++ b/reference/strings/functions/strpos.xml @@ -1,5 +1,5 @@ - + @@ -25,31 +25,35 @@ entire string will be used. - If needle is not found, returns &false;. - - - It is easy to mistake the return values for "character found at - position 0" and "character not found". Here's how to detect - the difference: - - + If needle is not found, + strpos will return boolean &false;. + + + &return.falseproblem; + + + + <function>strpos</function> examples + ]]> - - - - + + If needle is not a string, it is converted @@ -62,7 +66,7 @@ if (!is_integer($pos)) { the beginning of haystack. - See also strrpos, + See also strrpos, stripos, strrchr, substr, stristr, and strstr.