| Revision 20119,
316 bytes
checked in by nanasess, 15 years ago
(diff) |
|
module 以下は svn:keywords を除外
|
-
Property svn:eol-style set to
LF
|
| Line | |
|---|
| 1 | --TEST-- |
|---|
| 2 | Function -- strpbrk |
|---|
| 3 | --SKIPIF-- |
|---|
| 4 | <?php if (function_exists('strpbrk')) { echo 'skip'; } ?> |
|---|
| 5 | --FILE-- |
|---|
| 6 | <?php |
|---|
| 7 | require_once 'PHP/Compat.php'; |
|---|
| 8 | PHP_Compat::loadFunction('strpbrk'); |
|---|
| 9 | |
|---|
| 10 | $haystack = 'To be or not to be'; |
|---|
| 11 | $char_list = 'jhdn'; |
|---|
| 12 | |
|---|
| 13 | var_dump(strpbrk($haystack, $char_list)); |
|---|
| 14 | ?> |
|---|
| 15 | --EXPECT-- |
|---|
| 16 | string(9) "not to be" |
|---|
Note: See
TracBrowser
for help on using the repository browser.