LLMS_Database_Query::get( string $key, mixed $default = '' )
Retrieve a query variable with an optional fallback / default
Description Description
Parameters Parameters
- $key
-
(string) (Required) variable key
- $default
-
(mixed) (Optional) default value
Default value: ''
Return Return
(mixed)
Source Source
File: includes/abstracts/abstract.llms.database.query.php
public function get( $key, $default = '' ) { if ( isset( $this->query_vars[ $key ] ) ) { return $this->query_vars[ $key ]; } return $default; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.8.0 | Introduced. |