Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Finds out whether a variable is a boolean
<?php is_bool(mixed $value): bool
<?php     public function beginTransaction()

    {

        $result = db2_autocommit($this->conn, DB2_AUTOCOMMIT_OFF);

        assert(is_bool($result));



        return $result;

    }
<?php         }



        $result = db2_autocommit($this->conn, DB2_AUTOCOMMIT_ON);

        assert(is_bool($result));



        return $result;

    }
<?php         }



        $result = db2_autocommit($this->conn, DB2_AUTOCOMMIT_ON);

        assert(is_bool($result));



        return $result;

    }
<?php     {

        if (is_array($item)) {

            foreach ($item as $k => $value) {

                if (! is_bool($value)) {

                    continue;

                }
<?php                 $item[$k] = (int) $value;

            }

        } elseif (is_bool($item)) {

            $item = (int) $item;

        }
<?php             return $callback(null);

        }



        if (is_bool($value) || is_numeric($value)) {

            return $callback((bool) $value);

        }
<?php     {

        if (is_array($item)) {

            foreach ($item as $key => $value) {

                if (! is_bool($value) && ! is_numeric($value)) {

                    continue;

                }
<?php                 $item[$key] = (int) (bool) $value;

            }

        } elseif (is_bool($item) || is_numeric($item)) {

            $item = (int) (bool) $item;

        }
<?php         }



        $forceFetch = $input->getOption('force-fetch');

        assert(is_bool($forceFetch));



        if (stripos($sql, 'select') === 0 || $forceFetch) {

            $resultSet = $conn->fetchAllAssociative($sql);