string tokenization

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux