I'll be reading lines out of a file, which need to be separated at a delimiter character. Something like:
Field1: Some text belonging to this field.
I want to end up with two strings, "Field1" and "Some text belonging to this field."
why don't u refer strtok for tokenizing string depending on delimiter (say ':')
http://www.php.net/manual/html/function.strtok.html