10
* Smarty spacify modifier plugin
14
* Purpose: add spaces between characters in a string
15
* @link http://smarty.php.net/manual/en/language.modifier.spacify.php
16
* spacify (Smarty online manual)
17
* @author Monte Ohrt <monte at ohrt dot com>
22
function smarty_modifier_spacify($string, $spacify_char = ' ')
24
return implode($spacify_char,
25
preg_split('//', $string, -1, PREG_SPLIT_NO_EMPTY));
28
/* vim: set expandtab: */