LLMS_Question_Choice::get( string $key, mixed $default = '' )

Retrieve a piece of choice data by key

Parameters Parameters


(string) (Required) name of the data to be retrieved


(mixed) (Optional) default value if key isn't set

Default value: ''

Top ↑

Return Return


Top ↑

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;


Top ↑

Changelog Changelog

Version Description
3.16.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.