Jump to content

[SOLVED] split a string by a new line


beedie

Recommended Posts

I have a file with sentences each on a new line.

I want to split the string to get each sentence as it's own string.

I just need to know the format of a carriage return in a split function

I imagine this is very simple but my little brain didn't catch it.

My text has a whole line in between each sentence if that makes it easier.

Help appreciated

Link to comment
https://forums.phpfreaks.com/topic/124419-solved-split-a-string-by-a-new-line/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.