explode() working like strtok()

From: Date: Tue, 15 Apr 2003 17:31:17 +0000
Subject: explode() working like strtok()
Groups: php.general 
Request: Send a blank email to php-general+get-143989@lists.php.net to get a copy of this message
Greetings all! I have a text file that is separated into "records". I plan on having these records separated by a character (any character will do, as long as its unique). Ex. Data Line 1 Data Line 2 Data Line 3 ------------ Data Line 1 Data Line 2 Data Line 3 ------------ Data Line 1 Data Line 2 Data Line 3 ------------ strtok(), of course, only accepts a single character as the token, but explode() will accept a whole string. However, I want to continously tokenize the file like strtok() would do. Is there another function similar to explode() and strtok() that will tokenize repeatedly, AND accept a string as the token? Thanks for the help! Dale Walters dalewalt@adelphia.net

« previous php.general (#143989) next »