
October 7th, 2002, 09:09 PM
|
 |
Contributing User
|
|
Join Date: Feb 2000
Location: Perth West Australia
Posts: 757
Time spent in forums: 4 h 18 m 32 sec
Reputation Power: 14
|
|
|
equivalent to PHP explode or PERL split
Hi , with my C more than a little rusty
how do I take a string and <php_version>explode()</php_version> it by a known delimiter?
I am trying to do the following (pseudo-code)
//where argv[1] is a string "value1::value2::value3"
//php example'
$bits= explode("::",argv[1]);
put ( bundle, "CLIENTID", $bits[0]);
put ( bundle, "CARDDATA", $bits[1]);
put ( bundle, "CARDEXPIRYDATE", $bits[2]);
//etc//
any pointers appreciated
__________________
resistance is no longer futile :: 423
|