str::template

A super simple string template engine, which replaces tags like {mytag} with any other string

str::template($string, $data = array())

Parameters

$string (string)
$replace (array)
An associative array with keys, which should be replaced and values.

Return values

string