Line breaks in a textarea using php


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.


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