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: ''


Top ↑

Return Return

(mixed)


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

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.