How do you create a new line in a textarea when inserting the text via php?
I thought it was \\n but that gets literally printed in the textarea.
\\n
Try
$text = 'text line one' . PHP_EOL . 'text line two'; echo '' . $text . '';
Will add each text on reparate line in texarea.