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