Need help with a string

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

 



Given the following string:

$textString = "Share A Dream Come True Parade 3:00 SpectroMagic Parade 9:00, 11:00 Wishes? nighttime spectacular 10:00"

I need to break the string up into pieces where as 

$string[1] = "Share A Dream Come True Parade 3:00"
$string[2] = "SpectroMagic Parade 9:00, 11:00"
$string[3] = "Wishes? nighttime spectacular 10:00"


Granted this is pretty easy because I could just search for this stuff and break it up, but the string above can actually be different each time, for instance, next time it could be:

$textString = "Share A Dream Come True Parade 3:00, 5:00 SpectroMagic Parade 9:00, 11:00 Wishes? nighttime spectacular 10:00"

I think my main issue is that I don't know how to keep the , XX:XX part combined with the previous part of the string. 

Any help would be appreciated!

Thanks,
Brent


[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