Skip to main content

str_replace

Short description

Replaces all occurrences of a search string by a different string.

Description of this function

str_replace( mixed $_search  , mixed $_replace  , mixed $_subject  ) :

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