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     {

        $preference = $this->getPreference($key);



        if (is_int($preference) || is_bool($preference) || $preference) {

            return $this;

        }
<?php         }



        return $indexes->unique(function ($value, $key) {

            return is_int($key) ? $value : $key;

        })->mapWithKeys(function ($index, $key) {

            return is_int($key)

                ? [$index => $this->valueIndex]
<?php         return $indexes->unique(function ($value, $key) {

            return is_int($key) ? $value : $key;

        })->mapWithKeys(function ($index, $key) {

            return is_int($key)

                ? [$index => $this->valueIndex]

                : [$key => $index];

        });
<?php     public function float($key, $default = 0.0)

    {

        if (! $value = $this->get($key)) {

            return is_int($default) ? (float) $default : $default;

        }



        return (float) $value;