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: mb_strstr - 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

mb_strtolower" width="11" height="7"/> <mb_strrpos
Last updated: Thu, 31 May 2007

view this page in

mb_strstr

(PHP 5 >= 5.2.0)

mb_strstr — 文字列の中で、指定した文字列が最初に現れる位置を見つける

説明

string mb_strstr ( string $haystack, string $needle [, bool $part [, string $encoding]] )

mb_strstr() は、 haystack の中で最初に needle が現れる場所を探し、 haystack の部分文字列を返します。 needle が見つからなかった場合は FALSE を返します。

パラメータ

haystack

needle が最初に現れる位置を見つける文字列。

needle

haystack の中で探す文字列。

part

この関数が haystack のどの部分を返すのかを指定します。 TRUE の場合は、haystack の先頭から needle が最初に現れる位置までを返します。 FALSE の場合は、needle が最初に現れる位置から haystack の最後までを返します。 デフォルト値は FALSE です。

encoding

使用する文字エンコーディング名。 省略した場合は内部文字エンコーディングが用いられます。

返り値

haystack の部分文字列を返します。 needle が見つからない場合は FALSE を返します。

参考

stristr()
strstr()
mb_stristr()



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

mb_strtolower" width="11" height="7"/> <mb_strrpos
Last updated: Thu, 31 May 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites