I thought of using explode function but it does not separate on the basis of sentences and I want to separate the input into sentences.
The TEXT does not contain full-stop So using it for separating is out of question
I thought of using explode function but it does not separate on the basis of sentences and I want to separate the input into sentences.
The TEXT does not contain full-stop So using it for separating is out of question
If I am not wrong, you need to explode value by new line character. Please try
$array = explode(PHP_EOL, );
$array = preg_split('/\r\n|\r|\n/', );
Please check this answer. Explode PHP string by new line