Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Finds whether a variable is a number or a numeric string
is_numeric(mixed $value): bool
$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();
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();
$new = $callback((int) $current, $value);
if (! is_numeric($current)) {
return false;
}
if (! is_numeric($current)) {
return false;
}
protected function serialize($value)
{
return is_numeric($value) ? (string) $value : serialize($value);
}
{
return is_numeric($value) ? (string) $value : serialize($value);
}
return (int) $value;
}
if (is_numeric($value)) {
return (float) $value;
}
}
if (is_numeric($value)) {
return (float) $value;
}
protected function type($value)
{
return is_numeric($value) ? 'N' : 'S';
}
{
return is_numeric($value) ? 'N' : 'S';
}
protected function serialize($value)
{
return is_numeric($value) && ! in_array($value, [INF, -INF]) && ! is_nan($value) ? $value : serialize($value);
}
{
return is_numeric($value) && ! in_array($value, [INF, -INF]) && ! is_nan($value) ? $value : serialize($value);
}
protected function unserialize($value)
{
return is_numeric($value) ? $value : unserialize($value);
}
}
{
return is_numeric($value) ? $value : unserialize($value);
}
}
$classes = [];
foreach ($classList as $class => $constraint) {
if (is_numeric($class)) {
$classes[] = $constraint;
} elseif ($constraint) {
$classes[] = $class;
foreach ($classList as $class => $constraint) {
if (is_numeric($class)) {
$classes[] = $constraint;
} elseif ($constraint) {
$classes[] = $class;
$config = [];
foreach ($keys as $key => $default) {
if (is_numeric($key)) {
[$key, $default] = [$default, null];
}
foreach ($keys as $key => $default) {
if (is_numeric($key)) {
[$key, $default] = [$default, null];
}
return $this->compileArrayInput($key, $value);
}
if (! is_numeric($value) && ! preg_match('/^(-.$|--.*)/i', $value)) {
$value = ProcessUtils::escapeArgument($value);
}
}
if (! is_numeric($value) && ! preg_match('/^(-.$|--.*)/i', $value)) {
$value = ProcessUtils::escapeArgument($value);
}
$value = ProcessUtils::escapeArgument($value);
}
return is_numeric($key) ? $value : "{$key}={$value}";
})->implode(' ');
}
}
return is_numeric($key) ? $value : "{$key}={$value}";
})->implode(' ');
}
foreach ($relations as $key => $value) {
if (is_numeric($key) && is_string($value)) {
[$key, $value] = $this->parseNameAndAttributeSelectionConstraint($value);
}
if (is_numeric($key) && is_string($value)) {
[$key, $value] = $this->parseNameAndAttributeSelectionConstraint($value);
}
}
foreach ($relations as $key => $value) {
if (is_numeric($key)) {
$key = $value;
}
foreach ($relations as $key => $value) {
if (is_numeric($key)) {
$key = $value;
}
if (is_numeric($value)) {
return Date::createFromTimestamp($value);
}
return Date::createFromTimestamp($value);
}
return $this->fromEncryptedString($attribute) === $this->fromEncryptedString($original);
}
return is_numeric($attribute) && is_numeric($original)
&& strcmp((string) $attribute, (string) $original) === 0;
}
}
return is_numeric($attribute) && is_numeric($original)
&& strcmp((string) $attribute, (string) $original) === 0;
}