delimiter

How to detect a delimiter in a string in PHP?

I am curious if you have a string how would you detect the delimiter? We know php can split a string up with explode() which requires a delimiter parameter. But what about a method to detect the delimiter before sending it to explode function? Right now I am just outputting the string to the user and they enter the delimiter. That's ...