Line breaks in a textarea using php

0

Form submit to post menthod after line breake using nl2br() function. When displaying text, use nl2br() to convert newlines to tags. so now follw below example. You may also like Line break in a textarea and create array using php and How to create text editor in textarea using jquery.

Code

$Item           = $_POST['item'];
$getitem        = nl2br($Item);