XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
modifier.count_paragraphs.php
Go to the documentation of this file.
1 <?php
22 {
23  // count \r or \n characters
24  return count(preg_split('/[\r\n]+/', $string));
25 }
26 
27 /* vim: set expandtab: */
28 
29 ?>