| [ Index ] |
krapohl.info |
[Summary view] [Print] [Text view]
1 <?php 2 3 /* 4 * Smarty plugin 5 * ------------------------------------------------------------- 6 * Type: modifier 7 * Name: count_characteres 8 * Purpose: count the number of characters in a text 9 * ------------------------------------------------------------- 10 */ 11 function smarty_modifier_count_characters($string, $include_spaces = false) 12 { 13 if ($include_spaces) 14 return(strlen($string)); 15 16 return preg_match_all("/[^\s]/",$string, $match); 17 } 18 19 /* vim: set expandtab: */ 20 21 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Feb 16 22:40:07 2005 | Cross-referenced by PHPXref 0.6 |