XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
modifier.count_characters.php
Go to the documentation of this file.
1 <?php
22 function smarty_modifier_count_characters($string, $include_spaces = false)
23 {
24  if ($include_spaces)
25  return(strlen($string));
26 
27  return preg_match_all("/[^\s]/",$string, $match);
28 }
29 
30 /* vim: set expandtab: */
31 
32 ?>