Skip to main content

arsort

Short description

Sorts an array in reverse order while maintaining the index association.

Description of this function

arsort( array $_array  ) :

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