Skip to main content

in_array

Short description

Checks if a value exists in an array.

Description of this function

in_array( string $_needle  , array $_haystack  ) : 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