October 7th, 2002, 09:09 PM
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 is a string "value1::value2::value3"
put ( bundle, "CLIENTID", $bits);
put ( bundle, "CARDDATA", $bits);
put ( bundle, "CARDEXPIRYDATE", $bits);
any pointers appreciated
October 7th, 2002, 11:28 PM
strtok(), though it's not as easy to use. You basically pass it a set of delimiters and it breaks down the string into "tokens."
"Me fail English? That's unpossible!"