Learndash_Arr::get( array|ArrayAccess|ArrayObject $array, string|int $key, mixed $default = null )
Returns a value from array by the passed key or the default value if not found.
Description #
Parameters #
- $array
-
(<span class="arrayarray<int|">string,mixed>|ArrayAccess|ArrayObject) (Required) Array.
- $key
-
(string|int) (Required) Key.
- $default
-
(mixed) (Optional) Default value.
Default value: null
Return #
(mixed)
Source #
Changelog #
Version | Description |
---|---|
4.5.0 | Introduced. |