LLMS_Post_Model::get_array( string $key )
Getter for array values
Description Description
Ensures that even empty values return an array.
Parameters Parameters
- $key
-
(string) (Required) Property key.
Return Return
(array)
Source Source
File: includes/abstracts/abstract.llms.post.model.php
public function get_array( $key ) {
$val = $this->get( $key );
if ( ! is_array( $val ) ) {
$val = array( $val );
}
return $val;
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |