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.


Top ↑

Return Return

(bool) True if the key exists in the array and the value can be evaluated as 'true'.


Top ↑

Source Source

File: src/Utilities/ArrayUtil.php


			

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.