On Wed, 20 Mar 2002, Martin Towell wrote:
> (this code not tested)
>
> $res_arr = explode("\n", $result);
> $res_num = count($res_arr);
> for ($i = 0; $i < $res_num; $i++)
> {
> list($k, $v) = explode("=", $res_arr[$i]);
> $$k = $v;
> }
> ?>
>
> this isn't going to work properly if the "val
(this code not tested)
this isn't going to work properly if the "value" part has an "=" in it - in
that case, change the explode("=", ...) line to use strtok() or
strpos()/substr()
HTH
Martin
-Original Message-
From: Keith Posehn [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20,
2 matches
Mail list logo