erm i think there is, try using this, i use it to split dates down into days, months and years using many different seperators
PHP Code:
list($first_word, $utter_crap) = split('[ ?,]', $string);
So the first word would be extracted to $first_word (suprise suprise!) and $utter_crap is the rest of the string.
[ ?,] is where we specifiy the seperators, but i'm not sure about the space bit
Try it.
__________________
A lie gets halfway around the world before the truth has a chance to get its pants on. - Sir Winston Churchill
Please visit my sites: Please login or register to view this content. Registration is FREE | Please login or register to view this content. Registration is FREE
|