I am trying to access elements within an associative array. However, I do not seem to be able to get to the elements. If I use print_r() it says that is IS an array and shows me what is contained within it. However, is_array() returns false. Furthermore, when I echo the first element in the array it returns a value of 'a' rather than the actual array value. This is probably just some stupid mistake, but it is baffling me. Does anyone have any idea what the problem is here?
Thanks in advance for the help.
$sc2 = new ServiceCall($uri,null,false,false);
$sc2->makeCall();
$response = json_decode($sc2->getResponse(),true);
$tmp4 = var_export($response, true);
print_r($tmp4);
if(is_array($tmp4))
echo "Tmp4 is an array";
else
echo "Tmp4 is NOT an array";
print_r($tmp4);?print_r($tmp4)?"Array";)$tmp4.