Not sure whether to post this question in the Quiz forum or here, but it's definitely a developer question, and more specifically for Tim.
Hi Tim!
In my REGEXP adaptive behaviour renderer I need to get the current properties of the question "closest" Array. If from within that renderer I output: print_r($qa) to the screen I can see an awful lot of data, as shown below. Simple question is: what magic formula will enable me to retrieve the contents of the "closest" Array?
Thanks in advance.
*RECURSION*
)
[shownumcorrect] =>
[id] => 65
[category] => 2
[contextid] => 26
[parent] => 0
[qtype] => qtype_regexp Object
...
[name] => -rg-01
[questiontext] =>
What are the colours of the French flag?
[questiontextformat] => 1
[generalfeedback] =>
[generalfeedbackformat] => 1
[defaultmark] => 1
[length] => 1
[penalty] => 0.1
...
[hints] => Array
(
)
[closest] => Array
(
[0] => it's red, blue and white
[1] => it's red, blue and white
[2] =>
[3] => st
[4] =>
[5] => 10
)
)
...