so i am guessing $result is your array.
but even in an object don't you have to get the value of whatever you want.
so maybe in your object class you need to define a function/method that returns this:
$obj->base_section_name = "$section";
$obj->base_section_value = $id;
$obj->associated_section_name = "$associatedSection";
$obj->associated_section_value = $thisID;
function getObjectValue()
{
return/print $this->base_section_name.','.$this->base_section_value...etc
}
then you can call that in your in results after you have set the values.
so you set your values:
$obj->base_section_name = "$section";
$obj->base_section_value = $id;
$obj->associated_section_name = "$associatedSection";
$obj->associated_section_value = $thisID;
now return in_array($getObjectValue(), $results)
hope this is what you want.