Documentación GVHIDRA 3.1.5
Referencia del Archivo modifier.count_paragraphs.php

Ir al código fuente de este archivo.

Namespaces

namespace  Smarty

Funciones

 smarty_modifier_count_paragraphs ($string)

Documentación de las funciones

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

Parámetros:
string
Devuelve:
integer

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));
}