![]() |
Documentación GVHIDRA 3.1.5
|
Ir al código fuente de este archivo.
Namespaces | |
namespace | Smarty |
Funciones | |
smarty_modifier_count_paragraphs ($string) |
smarty_modifier_count_paragraphs | ( | $ | string | ) |
Smarty count_paragraphs modifier plugin
Type: modifier
Name: count_paragraphs
Purpose: count the number of paragraphs in a text count_paragraphs (Smarty online manual) Monte Ohrt
string |
Definición en la línea 21 del archivo modifier.count_paragraphs.php.
{ // count \r or \n characters return count(preg_split('/[\r\n]+/', $string)); }