Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Finds whether a variable is a number or a numeric string
<?php is_numeric(mixed $value): bool
<?php         $callbackParameters = $this->extractParameters($callback);



        return collect($this->extractChannelKeys($pattern, $channel))->reject(function ($value, $key) {

            return is_numeric($key);

        })->map(function ($value, $key) use ($callbackParameters) {

            return $this->resolveBinding($key, $value, $callbackParameters);

        })->values()->all();
<?php             $new = $callback((int) $current, $value);



            if (! is_numeric($current)) {

                return false;

            }
<?php     protected function serialize($value)

    {

        return is_numeric($value) ? (string) $value : serialize($value);

    }
<?php             return (int) $value;

        }



        if (is_numeric($value)) {

            return (float) $value;

        }
<?php     protected function type($value)

    {

        return is_numeric($value) ? 'N' : 'S';

    }
<?php     protected function serialize($value)

    {

        return is_numeric($value) && ! in_array($value, [INF, -INF]) && ! is_nan($value) ? $value : serialize($value);

    }
<?php     protected function unserialize($value)

    {

        return is_numeric($value) ? $value : unserialize($value);

    }

}
<?php         $classes = [];



        foreach ($classList as $class => $constraint) {

            if (is_numeric($class)) {

                $classes[] = $constraint;

            } elseif ($constraint) {

                $classes[] = $class;
<?php         $styles = [];



        foreach ($styleList as $class => $constraint) {

            if (is_numeric($class)) {

                $styles[] = Str::finish($constraint, ';');

            } elseif ($constraint) {

                $styles[] = Str::finish($class, ';');
<?php         $config = [];



        foreach ($keys as $key => $default) {

            if (is_numeric($key)) {

                [$key, $default] = [$default, null];

            }
<?php                 'The [%s] command is already running.', $this->getName()

            ));



            return (int) (is_numeric($this->option('isolated'))

                        ? $this->option('isolated')

                        : $this->isolatedExitCode);

        }
<?php                 return $this->compileArrayInput($key, $value);

            }



            if (! is_numeric($value) && ! preg_match('/^(-.$|--.*)/i', $value)) {

                $value = ProcessUtils::escapeArgument($value);

            }
<?php                 $value = ProcessUtils::escapeArgument($value);

            }



            return is_numeric($key) ? $value : "{$key}={$value}";

        })->implode(' ');

    }
<?php         foreach ($relations as $key => $value) {

            if (is_numeric($key) && is_string($value)) {

                [$key, $value] = $this->parseNameAndAttributeSelectionConstraint($value);

            }
<?php         }



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

            if (is_numeric($key)) {

                $key = $value;

            }