/[cvs]/nfo/php/libs/net.php.smarty/plugins/modifier.spacify.php
ViewVC logotype

Contents of /nfo/php/libs/net.php.smarty/plugins/modifier.spacify.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations)
Wed Oct 9 00:53:36 2002 UTC (21 years, 9 months ago) by cvsjoko
Branch: MAIN
no message

1 <?php
2
3 /*
4 * Smarty plugin
5 * -------------------------------------------------------------
6 * Type: modifier
7 * Name: spacify
8 * Purpose: add spaces between characters in a string
9 * -------------------------------------------------------------
10 */
11 function smarty_modifier_spacify($string, $spacify_char = ' ')
12 {
13 return implode($spacify_char,
14 preg_split('//', $string, -1, PREG_SPLIT_NO_EMPTY));
15 }
16
17 /* vim: set expandtab: */
18
19 ?>

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed