Re: [PHP] string tokenization

2005-09-13 Thread Luis MagaƱa
Git the first set of tokens to an array, then walk that array retrieving the subtokens. Regards babu wrote: 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

[PHP] string tokenization

2005-09-13 Thread babu
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 i