PhpSandbox\PHPSandbox::_boolval PHP Méthode

_boolval() public méthode

Return boolean value of SandboxedString or mixed value
public _boolval ( mixed $value ) : boolean
$value mixed Value to return as boolean
Résultat boolean Returns the boolean value
    public function _boolval($value)
    {
        if ($value instanceof SandboxedString) {
            return (bool) strval($value);
        }
        return is_bool($value) ? $value : (bool) $value;
    }
PHPSandbox