AnswerOptionsFunctions
in package
Table of Contents
Methods
- getAnswerOptionText() : null|string
- Return the answer text related to a question
Methods
getAnswerOptionText()
Return the answer text related to a question
public
static getAnswerOptionText(int|string $qidortitle, string $code[, int $scale = 0 ]) : null|string
Parameters
- $qidortitle : int|string
-
: question id or code of question, get parent question if needed
- $code : string
-
: code of the answer text to return
- $scale : int = 0
-
: scale of the answers, 1 is for array dual scale question