Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: iconv_strrpos - Manual
[go: Go Back, main page]

PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

iconv_substr" width="11" height="7"/> <iconv_strpos
Last updated: Mon, 05 Feb 2007

view this page in

iconv_strrpos

(PHP 5)

iconv_strrpos — 文字列が最後に現れる場所を見つける

説明

int iconv_strrpos ( string haystack, string needle [, string charset] )

strrpos() の返り値は needle が見つかった位置の 先頭からのバイト数でしたが、それとは異なり iconv_strrpos() の返り値は needle が見つかった 位置の先頭からの文字数となります。

パラメータ

haystack

文字列全体。

needle

検索する文字列。

charset

charset パラメータが指定されなかった場合、 string のエンコードは iconv.internal_charset であると判断されます。

haystackneedle が文字列でない場合、文字列に変換され、文字が並んだ値として適用されます。

返り値

文字列 haystack の中で、 needle が最後に現れた位置を数字で返します。 文字数は charset で指定された文字セットに基づいて 数えられます。

もし needle が見つからなかった場合、 iconv_strrpos()FALSE を返します。

警告
この関数は論理値 FALSE を返す可能性がありますが、FALSE として評価される 0 や "" といった値を返す可能性もあります。 詳細については 論理値の セクションを参照してください。この関数の返り値を調べるには ===演算子 を 使用してください。

参考

strrpos()
iconv_strpos()
mb_strrpos()



add a note add a note User Contributed Notes
iconv_strrpos
There are no user contributed notes for this page.

iconv_substr" width="11" height="7"/> <iconv_strpos
Last updated: Mon, 05 Feb 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites