From e7a895dfc241e2a28a5d6276ef690d7a2a62b0de Mon Sep 17 00:00:00 2001 From: Shein Alexey Date: Fri, 19 Aug 2011 10:03:54 +0000 Subject: [PATCH] Standartized description of iconv-str(r)pos functions. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@315172 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/iconv/functions/iconv-strpos.xml | 3 ++- reference/iconv/functions/iconv-strrpos.xml | 11 +++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/reference/iconv/functions/iconv-strpos.xml b/reference/iconv/functions/iconv-strpos.xml index 95d25473ba..9916939012 100644 --- a/reference/iconv/functions/iconv-strpos.xml +++ b/reference/iconv/functions/iconv-strpos.xml @@ -16,7 +16,8 @@ stringcharsetini_get("iconv.internal_encoding") - Finds position of first occurrence of a needle within a haystack. + Finds position of first occurrence of a needle + within a haystack. In contrast to strpos, the return value of diff --git a/reference/iconv/functions/iconv-strrpos.xml b/reference/iconv/functions/iconv-strrpos.xml index a50b308297..554d390e18 100644 --- a/reference/iconv/functions/iconv-strrpos.xml +++ b/reference/iconv/functions/iconv-strrpos.xml @@ -15,10 +15,15 @@ stringcharsetini_get("iconv.internal_encoding") - In contrast to strpos, the return value of + Finds the last occurrence of a needle + within a haystack. + + + In contrast to strrpos, the return value of iconv_strrpos is the number of characters that appear before the needle, rather than the offset in bytes to the - position where the needle has been found. + position where the needle has been found. The characters are counted + on the basis of the specified character set charset. @@ -66,8 +71,6 @@ Returns the numeric position of the last occurrence of needle in haystack. - The characters are counted - on the basis of the specified character set charset. If needle is not found,