src/MvcCore/Ext/Forms/View.php
public static function Format ($str = '', array $args = []) {
		foreach ($args as $key => $value) {
			$pos = strpos($str, '{'.$key.'}');
			if ($pos !== FALSE)
				$str = substr($str, 0, $pos) . $value . substr($str, $pos + strlen($key) + 2);
		}
		return $str;
	}
public static function Format ($str = '', array $args = []) {
		foreach ($args as $key => $value) {
			$pos = strpos($str, '{'.$key.'}');
			if ($pos !== FALSE)
				$str = substr($str, 0, $pos) . $value . substr($str, $pos + strlen($key) + 2);
		}
		return $str;
	}
public static function Format ( $ str = '' , array $ args = [ ] ) { foreach ( $ args as $ key => $ value ) { $ pos = strpos ( $ str , '{' . $ key . '}' ) ; if ( $ pos !== FALSE ) $ str = substr ( $ str , 0 , $ pos ) . $ value . substr ( $ str , $ pos + strlen ( $ key ) + 2 ) ; } return $ str ; }
Format string function.
@param string $str Template with replacements like `{0}`, `{1}`, `{anyStringKey}`...
@param array $args Each value under it's index is replaced as
string representation by replacement in form `{arrayKey}`
@return string
Format string function .