6 * @subpackage PluginsModifierCompiler
10 * Smarty string_format modifier plugin
13 * Name: string_format<br>
14 * Purpose: format strings via sprintf
16 * @link http://smarty.php.net/manual/en/language.modifier.string.format.php string_format (Smarty online manual)
18 * @param array $params parameters
19 * @return string with compiled code
21 function smarty_modifiercompiler_string_format($params, $compiler)
23 return 'sprintf(' . $params[1] . ',' . $params[0] . ')';