0
textarea data to usable individual string
How can we convert textarea multiple line input to usable individual string?
1 Odpowiedź
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>';
}