What common issue arises when storing and retrieving text with line breaks in PHP files?

When storing and retrieving text with line breaks in PHP files, a common issue is that the line breaks may not be displayed correctly when the text is retrieved from a database or file. To solve this issue, you can use the PHP function nl2br() when displaying the text to convert newline characters to HTML line breaks.

$text = "This is a text with\nline breaks.";
echo nl2br($text);