Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

strpbrk(3) [php man page]

STRPBRK(3)								 1								STRPBRK(3)

strpbrk - Search a string for any of a set of characters

SYNOPSIS
string strpbrk (string $haystack, string $char_list) DESCRIPTION
strpbrk(3) searches the $haystack string for a $char_list. PARAMETERS
o $haystack - The string where $char_list is looked for. o $char_list - This parameter is case sensitive. RETURN VALUES
Returns a string starting from the character found, or FALSE if it is not found. EXAMPLES
Example #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 ALSO
strpos(3), strstr(3), preg_match(3). PHP Documentation Group STRPBRK(3)
Man Page

5 More Discussions You Might Find Interesting

1. Programming

C program in Unix / Linux - Time differences

Hi Friends, When Iam running c program in redhat linux 7.3 version and PCQ Linux 8.0 version, its taking around 20 seconds. But when Iam running it in HP-UX Release 11i, its taking around 3 minutes. Can anyone throw light on this. Thanks in advance, Praveen. (11 Replies)
Discussion started by: chprvkmr
11 Replies

2. Programming

valgrind (Conditional jump or move depends on uninitialised value(s))

Hi everybody, I wrote a small subroutine 'GetStringDelim()' to return a substring from a string enclosed by a string 'Limit1' and a char 'Limit2'. It works perfectly and I don't get an error message together with valgrind, if I set the 3rd parameter in GetStringDelim() to NULL (see below). ... (3 Replies)
Discussion started by: MIB_Maik
3 Replies

3. Shell Programming and Scripting

converting rows into columns

Hi, I am trying to fetch some values from db and spooling the output to a file. when i query the db for the values, i get the values in following format. PC_1 wf_test1 Test PC_2 wf_test2 Test PC_3 wf_test3 Test But my spool file was created in following format. PC_1 wf_test1 Test... (20 Replies)
Discussion started by: svajhala
20 Replies

4. Programming

Tokenistring a string in C++

Hi I have a string like "12;13;14|aa = 14;bb = 15" I have to store the values 12,13 and 14 in a list. and aa,bb in another list. Can anyone suggest me how to perform this in c++? :confused: Use code tags please, see PM. (2 Replies)
Discussion started by: rkrish
2 Replies

5. Programming

Wildcard Pattern Matching In C

I've been having problems lately trying to do pattern matching in C while implementing wildcards. Take for instance the following code: #include <sys/types.h> #include <sys/stat.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <dirent.h> #include <string.h> ... (14 Replies)
Discussion started by: Azrael
14 Replies