| Server IP : 103.191.208.88 / Your IP : 216.73.216.44 Web Server : Microsoft-IIS/10.0 System : Windows NT COSMIC 10.0 build 20348 (Windows Server 2022) AMD64 User : IWPD_1831(willswel_) ( 0) PHP Version : 8.2.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : D:/Inetpub/vhosts/willswell.com/httpdocs/wp-content/plugins/fluentform/app/Compat/ |
Upload File : |
<?php
namespace FluentForm\Framework\Helpers;
use FluentForm\Framework\Support\Arr;
use FluentForm\Framework\Support\Helper;
class ArrayHelper extends Arr
{
/**
* Return the default value of the given value.
*
* @param mixed $value
* @return mixed
*/
public static function value($value)
{
return Helper::value($value);
}
public static function isTrue($array, $key)
{
$value = static::get($array, $key);
if (is_bool($value)) {
return $value;
}
if ('false' == $value || '0' == $value || !$value) {
return false;
}
return true;
}
}