PHP remove content after a certain character

We could remove everything after a certain character inside string in PHP. For example you willing to displaying only content before first < character, so we need PHP remove content after a certain character.

As we see example above, its not only can remove content after a certain character, but also multiple character combination.

References: PHP substr | PHP strpos | PHP strstr