PHP 2 min read
Why strpos misses a match at the beginning of a string
A support-ticket parser should recognize a line beginning with ERROR:. The parser works when the marker appears halfway through a line, but skips the most obvious case: a marker at...