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_paragraphs.php
Go to the documentation of this file.
1
<?php
21
function
smarty_modifier_count_paragraphs
($string)
22
{
23
// count \r or \n characters
24
return
count(preg_split(
'/[\r\n]+/'
, $string));
25
}
26
27
/* vim: set expandtab: */
28
29
?>
L:
0xoops
xoops-2.5.6
htdocs
class
smarty
plugins
modifier.count_paragraphs.php
Generated on Fri May 10 2013 01:04:24 for XOOPS 2.5.6 by
1.8.3.1