Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Find whether the type of a variable is integer
<?php is_int(mixed $value): bool
<?php     private function _bindTypedValues(DriverStatement $stmt, array $params, array $types): void

    {


        if (is_int(key($params))) {

            $bindIndex = 1;



            foreach ($params as $key => $value) {
<?php     public function bindValue($param, $value, $type = ParameterType::STRING)

    {

        assert(is_int($param));



        return $this->bindParam($param, $value, $type);

    }
<?php     public function bindParam($param, &$variable, $type = ParameterType::STRING, $length = null)

    {

        assert(is_int($param));



        switch ($type) {

            case ParameterType::INTEGER:
<?php     public function bindParam($param, &$variable, $type = ParameterType::STRING, $length = null)

    {

        assert(is_int($param));



        if (! isset(self::$_paramTypeMap[$type])) {

            throw UnknownParameterType::new($type);
<?php     public function bindValue($param, $value, $type = ParameterType::STRING)

    {

        assert(is_int($param));



        if (! isset(self::$_paramTypeMap[$type])) {

            throw UnknownParameterType::new($type);
<?php         $types   = $this->types;



        foreach ($this->_bindedValues as $parameter => $value) {

            assert(is_int($parameter));



            if (! isset($types[$parameter - 1])) {

                $types[$parameter - 1] = static::$_paramTypeMap[ParameterType::STRING];
<?php     public function quote($value, $type = ParameterType::STRING)

    {

        if (is_int($value) || is_float($value)) {

            return $value;

        }
<?php     public function bindParam($param, &$variable, $type = ParameterType::STRING, $length = null)

    {

        if (is_int($param)) {

            if (! isset($this->_paramMap[$param])) {

                throw UnknownParameterIndex::new($param);

            }
<?php     {

        if ($params !== null) {

            foreach ($params as $key => $val) {

                if (is_int($key)) {

                    $this->bindValue($key + 1, $val);

                } else {

                    $this->bindValue($key, $val);
<?php         if (isset($params['driverOptions'])) {

            foreach ($params['driverOptions'] as $option => $value) {

                if (is_int($option)) {

                    $pdoOptions[$option] = $value;

                } else {

                    $dsnOptions[$option] = $value;
<?php     public function quote($value, $type = ParameterType::STRING)

    {

        if (is_int($value)) {

            return $value;

        }
<?php     public function bindValue($param, $value, $type = ParameterType::STRING)

    {

        assert(is_int($param));



        $this->variables[$param] = $value;

        $this->types[$param]     = $type;
<?php     public function bindParam($param, &$variable, $type = ParameterType::STRING, $length = null)

    {

        assert(is_int($param));



        $this->variables[$param] =& $variable;

        $this->types[$param]     = $type;
<?php     {

        if ($params !== null) {

            foreach ($params as $key => $val) {

                if (is_int($key)) {

                    $this->bindValue($key + 1, $val);

                } else {

                    $this->bindValue($key, $val);
<?php                 $value = $row['sequence_value'];

                $value++;



                assert(is_int($value));



                if ($row['sequence_increment_by'] > 1) {

                    $this->sequences[$sequence] = [