Hey Thanks, I just about to understandit but could you just confirm the below:
foreach ($doc->question_list as $question)
The above is saying: "For each,, nope i'm already confused as to what and how this is working, ha ha ha, need soem help here.
if (in_array((integer) $question->id, $ids)) is saying:
"If the id of a specific question is a a valid integer and is in the array called $ids thendo something?"