ArrayUtil::is_truthy( array $array, string $key )
Checks if a given key exists in an array and its value can be evaluated as ‘true’.
Description Description
Parameters Parameters
- $array
-
(Required) The array to check.
- $key
-
(Required) The key for the value to check.
Return Return
(bool) True if the key exists in the array and the value can be evaluated as 'true'.
Source Source
File: src/Utilities/ArrayUtil.php