00001 <?php
00021 function smarty_modifier_count_characters($string, $include_spaces = false)
00022 {
00023 if ($include_spaces)
00024 return(strlen($string));
00025
00026 return preg_match_all("/[^\s]/",$string, $match);
00027 }
00028
00029
00030
00031 ?>