/modules/quicky/classes/plugins/modifier.count_characters.php
PHP | 8 lines | 6 code | 2 blank | 0 comment | 1 complexity | 3f8a69b2fbf590ea5928ddc7ce6fc0fd MD5 | raw file
Possible License(s): BSD-3-Clause, LGPL-2.1
- <?php
- function quicky_modifier_count_characters($string,$include_spaces = FALSE)
- {
- if ($include_spaces) {return strlen($string);}
- return preg_match_all('~\S~',$string,$match);
- }