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: strpbrk - Manual
[go: Go Back, main page]

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

search for in the

strpos" width="11" height="7"/> <strncmp
Last updated: Wed, 01 Nov 2006
view this page in

strpbrk

(PHP 5)

strpbrk --  文字列の中から任意の文字を探す

説明

string strpbrk ( string haystack, string char_list )

strpbrk() は、文字列 haystack から char_list を探し、見つかった文字から始まる 文字列を返します(見つからなかった場合は FALSE を返します)。

注意: パラメータ char_list は大文字小文字を区別します。

例 1. strpbrk() の例

<?php

$text
= 'This is a Simple text.';

// これは "is is a Simple text." を出力します。なぜなら 'i' が最初にマッチするからです。
echo strpbrk($text, 'mi');

// これは "Simple text." を出力します。なぜなら大文字小文字が区別されるからです。
echo strpbrk($text, 'S');
?>



add a note add a note User Contributed Notes
strpbrk
aidan at php dot net
21-Aug-2004 05:11
This functionality is now implemented in the PEAR package PHP_Compat.

More information about using this function without upgrading your version of PHP can be found on the below link:

http://pear.php.net/package/PHP_Compat

strpos" width="11" height="7"/> <strncmp
Last updated: Wed, 01 Nov 2006
 
 
show source | credits | sitemap | contact | advertising | mirror sites