Skip to main content

is_numeric

Short description

Checks if a variable is a number or a numeric string.

Description of this function

is_numeric( mixed $_var  ) : bool

Examples

{%
	$_array = {"Id":"100","Name":"Couch Red","Price":"400 €"};

	if (array_key_exists("Price", $_array))
	{
		print("Der Artikel ".$_array["Name"]." kostet ".$_array["Price"]);
	}
%}

To top