This is an revision of my previous message:
Ok, lets say I have some code here:
$result = array();
$ch = curl_init (https://www.myverificationplace.com/verify.asp;);
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $args);
curl_setopt ($ch, CURLOPT_TIMEOUT, 120); //
to use strtok() or
strpos()/substr()
HTH
Martin
-Original Message-
From: Keith Posehn [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 9:22 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Curl output to an array -- HELP!! -- Appended
This is an revision of my previous message:
Ok
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 value part has an =
3 matches
Mail list logo