PHP Manual
/

PHP function is_numeric()

2019-09-11T08:04:03.000Z

Obsah článku

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

Jan Barášek   Více o autorovi

Autor článku pracuje jako seniorní vývojář a software architekt v Praze. Navrhuje a spravuje velké webové aplikace, které znáte a používáte. Od roku 2009 nabral bohaté zkušenosti, které tímto webem předává dál.

Rád vám pomůžu:

Související články

1.
10.

V jiných jazycích

Status:
All systems normal.
2025