Thanks, Ish! I'll tell them.
🙂 It was a bit more complicated than that, but I figured it out eventually:
// A function to return the value requested
function returnAttr ($query, $array, $default="blank"){
$i = -1;
foreach ( $array as $attribute )
{
$i++;
if ($array[$i]->attrName == $query){
return $array[$i]->attrValue;
exit;
}
}
return $default; // optional value if the one for which you're searching is blank
}
echo returnAttr("FirstName", $leadAttributes);
In case anyone else comes across the same need in the future.
Edward Unthank Marketing Operations Specialist
Yesler