Re: string tokenization

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

 



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 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.

--
Luis Magaña
Gnovus Networks & Software
www.gnovus.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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