(PHP 5)
strpbrk — Durchsucht einen String nach einem Zeichen aus einer Gruppe von Zeichen
strpbrk() durchsucht den String haystack nach dem ersten Vorkommen eines Zeichens aus char_list.
Die Zeichenkette, in der char_list gesucht werden soll.
Dieser Parameter berücksichtigt Groß- und Kleinschreibung.
Gibt den Rest des Strings, beginnend bei der ersten Fundstelle, zurück; falls kein Zeichen gefunden wird jedoch FALSE.
Beispiel #1 strpbrk()-Beispiel
<?php
$text = 'Dies ist ein einfacher Text.';
// Gibt "ies ist ein einfacher Text." aus, da 'i' als erstes gefunden wird
echo strpbrk($text, 'ti');
// Gibt "Text." aus, da Groß- und Kleinschreibung berücksichtigt wird
echo strpbrk($text, 'T');
?>
A simpler (and slightly faster) strpbrkpos function:
<?php
function strpbrkpos($haystack, $char_list) {
    $result = strcspn($haystack, $char_list);
    if ($result != strlen($haystack)) {
        return $result;
    }
    return false;
}
?>
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.
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:
<?php
function strpbrkpos($s, $accept) {
  $r = FALSE;
  $t = 0;
  $i = 0;
  $accept_l = strlen($accept);
  for ( ; $i < $accept_l ; $i++ )
    if ( ($t = strpos($s, $accept{$i})) !== FALSE )
      if ( ($r === FALSE) || ($t < $r) )
        $r = $t;
  return $v;
}
?>
For PHP versions before 5:
<?php
    function strpbrk( $haystack, $char_list )
    {
        $strlen = strlen($char_list);
        $found = false;
        for( $i=0; $i<$strlen; $i++ ) {
            if( ($tmp = strpos($haystack, $char_list{$i})) !== false ) {
                if( !$found ) {
                    $pos = $tmp;
                    $found = true;
                    continue;
                }
                $pos = min($pos, $tmp);
            }
        }
        if( !$found ) {
            return false;
        }
        return substr($haystack, $pos);
    }
?>
Sadly this is about ten times slower than the native implementation.
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.
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