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.