XOOPS 2.5.6
Final
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
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
?>
L:
0xoops
xoops-2.5.6
htdocs
class
smarty
plugins
modifier.count_characters.php
Generated on Fri May 10 2013 01:04:24 for XOOPS 2.5.6 by
1.8.3.1