Gen. partnerAlgotech

PHP function is_numeric()

Finds whether a variable is a number or a numeric string

|
September 11, 2019

Availability in PHP 4.0

Finds whether a variable is a number or a numeric string

Parameters

Parameter Data type Default value Note
$var mixed not The variable being evaluated.

Return values

bool

true if var is a number or a numeric string, false otherwise.

Other resources

Official is-numeric documentation

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.