Read data row by row from textarea

I want to copy the phone numbers into the text area and add them to the database by reading row by row. textarea does not contain html elements and how should I read these rows row by row?
( I need server side )

If you can identify what the lines are terminated with (i.e. CRLF etc) then you can use the split() function to break them into an array. Any editor that can show hex codes will reveal the appropriate ascii codes

see

and

1 Like

thanks Brian .. I will try custom formatter

function formatter_splitme($val) {
return preg_split('/\n|\r\n?/', $val);
}

1 Like