--TEST-- strpbrk --FILE-- $text = 'This is a Simple text.'; echo strpbrk($text, 'mi'); --EXPECT-- $text = 'This is a Simple text.'; echo strpbrk($text, 'mi'); is is a Simple text. echo strpbrk($text, "S"); Simple text.