diff --git a/reference/strings/functions/strripos.xml b/reference/strings/functions/strripos.xml index 755033b9da..fc45831457 100644 --- a/reference/strings/functions/strripos.xml +++ b/reference/strings/functions/strripos.xml @@ -1,5 +1,5 @@ - + strripos @@ -13,6 +13,7 @@ intstrripos stringhaystack stringneedle + intoffset Returns the numeric position of the last occurrence of @@ -61,6 +62,11 @@ if ($pos === false) { + + offset may be specified to begin searching an + arbitrary number of characters into the string. Negative values will + stop searching at an arbitrary point prior to the end of the string. + See also strrpos, strrchr, diff --git a/reference/strings/functions/strrpos.xml b/reference/strings/functions/strrpos.xml index 9b7af22daa..d24ce9338d 100644 --- a/reference/strings/functions/strrpos.xml +++ b/reference/strings/functions/strrpos.xml @@ -1,5 +1,5 @@ - + @@ -14,6 +14,7 @@ intstrrpos stringhaystack stringneedle + intoffset Returns the numeric position of the last occurrence of @@ -55,11 +56,20 @@ if (is_string($pos) && !$pos) { If needle is not a string, it is converted to an integer and applied as the ordinal value of a character. - - The needle may be a string of more than one - character as of PHP 5, and numbers are converted to a string instead of - being applied as the ordinal value of a character. - + + + As of PHP 5.0.0 offset may + be specified to begin searching an arbitrary number of characters into + the string. Negative values will stop searching at an arbitrary point + prior to the end of the string. + + + + + The needle may be a string of more than one + character as of PHP 5.0.0. + + See also strpos, strripos,