Line break in php

In a form where a user is given a textarea; how can i do in php to detect line breaks in his text, so i can replace them with the appropriate tags in html.
i tried this but it doesn’t work

code:
$texte = str_replace(vbCrL&, '< br> ', $texte);
echo $texte ;