public function replace($strTemplate) {
		preg_match_all($this->regex, $strTemplate, $matches);
		$arrReplace = array();
		foreach ($matches[1] as $match) {
			$arrReplace[] = $this->get($match);
		}

		return str_replace($matches[0], $arrReplace, $strTemplate);
	}
public function replace($strTemplate) {
		preg_match_all($this->regex, $strTemplate, $matches);
		$arrReplace = array();
		foreach ($matches[1] as $match) {
			$arrReplace[] = $this->get($match);
		}

		return str_replace($matches[0], $arrReplace, $strTemplate);
	}
public function replace ( $ strTemplate ) { preg_match_all ( $ this -> regex , $ strTemplate , $ matches ) ; $ arrReplace = array ( ) ; foreach ( $ matches [ 1 ] as $ match ) { $ arrReplace [ ] = $ this -> get ( $ match ) ; } return str_replace ( $ matches [ 0 ] , $ arrReplace , $ strTemplate ) ; }
Insert placeholders into a string

@param string $strTemplate
@return $strTemplate
Insert placeholders into a string