<?php

# PHP_EOLは改行コードです
# strpbrk ( string $haystack , string $char_list ) : string
# strpbrk ( 対象文字列, 探したい文字列)
# 見つかった文字から始まる文字列、あるいは見つからなかった場合に FALSE を返します。
$text = 'Hello, Sum. This is a simple text.';

echo strpbrk($text, 'mi'), PHP_EOL;
// m. This is a simple text.

echo strpbrk($text, 'S'), PHP_EOL;
// Sum. This is a simple text.
echo strpbrk($text, 's'), PHP_EOL;
// s is a simple text.