|
Posted by Luis Magaρa on 09/14/05 01:33
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
Navigation:
[Reply to this message]
|