Skip to main content

json_encode

Short description

Returns the JSON representation of a value.

Description of this function

json_encode( mixed $_value  ) : string

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