Gossamer Forum
Home : General : Internet Technologies :

Breaking Up a Line using PHP (Part 2)

Quote Reply
Breaking Up a Line using PHP (Part 2)
When I was breaking up my lines using
Code:
for ($index=0; $index < count($ot_load); $index++) {
$text = explode(":", chop($ot_load[$index]));


I failed to recognize the huge problem of more colons. So I'm back asking if there is a way to explode only the first 3 colons.

My line example:

Code:
Book:Chap:Verse: Text that would make: up my verse.


Results in:

Book | Chap | Verse | Text that would make

Where as I need the result to be:

Book | Chap | Verse | Text that would make: up my verse.
Subject Author Views Date
Thread Breaking Up a Line using PHP (Part 2) JoFrRi 4558 Aug 31, 2003, 11:22 AM
Thread Re: [JoFrRi] Breaking Up a Line using PHP (Part 2)
brewt 4373 Aug 31, 2003, 1:53 PM
Post Re: [brewt] Breaking Up a Line using PHP (Part 2)
JoFrRi 4356 Aug 31, 2003, 6:29 PM