The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
PHP: how to find a line feed in a text
I have a text in $mytext
Now I want to cut that text after the 5th line. Doing so by estimating that every line is, say 100 chars, doesn't allways work. Like in this case where every line has a line feed: Line 1 Line 2 Line 3 Line 4 Line 5 Line 6 Line 7 How can I detect (and count) the line feeds in this text and determine which one is the 5th, so I know where to cut my text? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|