![]() |
Documentación GVHIDRA 3.1.5
|
Ir al código fuente de este archivo.
Namespaces | |
namespace | Smarty |
Funciones | |
smarty_modifier_count_sentences ($string) |
smarty_modifier_count_sentences | ( | $ | string | ) |
Smarty count_sentences modifier plugin
Type: modifier
Name: count_sentences Purpose: count the number of sentences in a text count_sentences (Smarty online manual) Monte Ohrt
string |
Definición en la línea 21 del archivo modifier.count_sentences.php.
{ // find periods with a word before but not after. return preg_match_all('/[^\s]\.(?!\w)/', $string, $match); }