[ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Smarty plugin 4 * @package Smarty 5 * @subpackage PluginsModifier 6 */ 7 8 /** 9 * Smarty spacify modifier plugin 10 * 11 * Type: modifier<br> 12 * Name: spacify<br> 13 * Purpose: add spaces between characters in a string 14 * 15 * @link http://smarty.php.net/manual/en/language.modifier.spacify.php spacify (Smarty online manual) 16 * @author Monte Ohrt <monte at ohrt dot com> 17 * @param string $string input string 18 * @param string $spacify_char string to insert between characters. 19 * @return string 20 */ 21 function smarty_modifier_spacify($string, $spacify_char = ' ') 22 { 23 // well… what about charsets besides latin and UTF-8? 24 return implode($spacify_char, preg_split('//' . Smarty::$_UTF8_MODIFIER, $string, -1, PREG_SPLIT_NO_EMPTY)); 25 } 26 27 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |