I have this array:
$client = new OAuth2\Client($client_id, $client_secret, $region, $locale, $redirect_uri);
$array = array('id'=>'13146');
$type = 'quest';
$r = $client->fetch($type,$array);
echo '<pre>';
print_r ($r);
echo '</pre>';
?>
[result] => Array
(
[id] => 13146
[title] => Generosity Abounds
[reqLevel] => 77
[suggestedPartyMembers] => 0
[category] => Icecrown
[level] => 80
)
To access title
and category
you need to do this:
echo $r['result']['title']; // Generosity Abounds
echo $r['result']['category']; // Icecrown