Query: strpbrk
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
STRPBRK(3) 1 STRPBRK(3) strpbrk - Search a string for any of a set of charactersSYNOPSISstring strpbrk (string $haystack, string $char_list)DESCRIPTIONstrpbrk(3) searches the $haystack string for a $char_list.PARAMETERSo $haystack - The string where $char_list is looked for. o $char_list - This parameter is case sensitive.RETURN VALUESReturns a string starting from the character found, or FALSE if it is not found.EXAMPLESExample #1 strpbrk(3) example <?php $text = 'This is a Simple text.'; // this echoes "is is a Simple text." because 'i' is matched first echo strpbrk($text, 'mi'); // this echoes "Simple text." because chars are case sensitive echo strpbrk($text, 'S'); ?>SEE ALSOstrpos(3), strstr(3), preg_match(3). PHP Documentation Group STRPBRK(3)
Related Man Pages |
---|
strpbrk(3) - bsd |
strpos(3) - php |
strstr(3) - php |
strpbrk(3) - v7 |
strpbrk(3) - plan9 |
Similar Topics in the Unix Linux Community |
---|
C program in Unix / Linux - Time differences |
valgrind (Conditional jump or move depends on uninitialised value(s)) |
converting rows into columns |
Wildcard Pattern Matching In C |