LLMS_Question_Choice::get( string $key, mixed $default = '' )
Retrieve a piece of choice data by key
Parameters Parameters
- $key
-
(string) (Required) name of the data to be retrieved
- $default
-
(mixed) (Optional) default value if key isn't set
Default value: ''
Return Return
(mixed)
Source Source
File: includes/models/model.llms.question.choice.php
public function get( $key, $default = '' ) { if ( isset( $this->data[ $key ] ) ) { return $this->data[ $key ]; } return $default; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.16.0 | Introduced. |