I'm getting a return string from a merchant account that looks like:
RecurringID=8675309&RefNo=41:39&Notes=
so I parse it into an array like this:
$results = array();
$temp = explode('&', $temp);
foreach($temp as $line)
{
$line = explode('=', $line);
$results[trim($line[0])] = trim($line[1]);
}
The resulting print_r($results); produces this:
Array ( [RecurringID] => 8675309 [RefNo] => 41:39 [Notes] => )
And yet when I try this:
$blah = $results['RecurringID'];
I get:
Notice (8) : Undefined index: RecurringID