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

Getter


Parameters Parameters

$key

(string) (Required) Data key name

$default

(mixed) (Optional) Default fallback value if key is unset. Default is empty string.

Default value: ''


Top ↑

Return Return

(mixed)


Top ↑

Source Source

File: includes/models/model.llms.quiz.attempt.question.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.