Skip to main content

count

Short description

Counts all elements in an array or attributes in an object.

Description of this function

count( array $_array  ) : int

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