Hi, I have different types of main strings seperated by commas(,). I want to tokenize the main string using php's string token function. I have substrings in the main string which are seperated by "-". examples: 1. 20,21-24 2. 21-24,20 3. 10,20,21-24,25,26,30 so on the whole the main string is seperated by comma and some of the substrings(tokes) are seperated by hypen. can some one give me an idea how to implement in php. Thanks babu. --------------------------------- To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre.