0

textarea data to usable individual string

How can we convert textarea multiple line input to usable individual string?

19th Jun 2017, 6:47 PM
MD. WOALID HOSSAIN
MD. WOALID HOSSAIN - avatar
1 Answer
0
i do it using below code. //s_POST['test'] input from textarea $k= nl2br($_POST['test']); $k = explode('<br />',$k); echo '<br>'; $len=count($k); for($i=0;$i<$len;$i++){ echo $k[$i].'<br>'; }
19th Jun 2017, 6:49 PM
MD. WOALID HOSSAIN
MD. WOALID HOSSAIN - avatar