0

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

1 Answers1

0

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

Riddhi Rathod
  • 410
  • 2
  • 9