I want to display a string up to occurrence X, I could only do it this way:
echo substr($conteudo, 0, strpos($conteudo, 'quebra-de-linha'));
Is there a native resource in PHP that can do this? So I do not need to chain substr and strpos as I did above.