string tokenization

From: Date: Tue, 13 Sep 2005 22:22:59 +0000
Subject: string tokenization
Groups: php.general 
Request: Send a blank email to php-general+get-222306@lists.php.net to get a copy of this message
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.

« previous php.general (#222306) next »