One undocumented requirement:
If $char_list contains null characters ("\0"), only characters before the null will be used. While PHP handles nulls in strings just fine, the data is passed to a function that is not null safe.
![]() |
|
||||||||||
|
strpbrkОписаниеstring strpbrk ( string haystack, string char_list )
strpbrk() ищет в строке
strpbrk
pzb at novell dot com
28-Jul-2007 04:09
One undocumented requirement:
Evan
03-Jul-2007 08:33
If you're not looking to duplicate the rest of the string, but instead just want the offset, in the spirit of the str*pos() functions:
user at example dot net
03-Jul-2007 12:25
For PHP versions before 5:
jamie dot mcardle at stpetersgv dot org
07-Jun-2007 02:54
I wanted to use this function to look for an @ in a db entry - didn't work because I don't have this version of PHP yet, but I thought I had my issue licked. Darn it.
aidan at php dot net
21-Aug-2004 01:11
This functionality is now implemented in the PEAR package PHP_Compat. |