Splitting string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

(a) I don't have php 5 :) 

(b) I have tried to use a < php 5 snippet from manual to no success ...


I have a string like such ... "word                 another word
yet another"

Now ... from word to another word (excluding another word, including word)
is 50 chars ... and the same fro another word to yet another ...

I need to split this string and get those three "fields"

I manage to get the first section right ...

Example of string;

$string = "EVOLUTION                                         DEAR GOD
BOYZ_II_MEN                                       ";

Will someone be able to assist me?

I cannot strip spaces as some of the "words" will be double ... ie "Dear
God" etc


Kind Regards,


Steven Macintyre
http://steven.macintyre.name
--

http://www.friends4friends.co.za

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux