LLMS_Question::get_choices( string $return = 'choices' )
Retrieve the question’s choices
Description Description
Parameters Parameters
- $return
-
(Optional) Determine how to return the choice data. 'choices' (default) returns an array of LLMS_Question_Choice objects. 'ids' returns an array of LLMS_Question_Choice ids.
Default value: 'choices'
Return Return
(array)
Source Source
File: includes/models/model.llms.question.php
Changelog Changelog
| Version | Description |
|---|---|
| 4.4.0 | Don't allow objects when using unserialize(). |
| 3.35.0 | Escape LIKE clause. |
| 3.30.1 | Improve choice sorting to accommodate numeric markers. |
| 3.16.0 | Introduced. |