• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • Examples
  • File List

E:/E/GEAMP/www/openbiz/openbiz/others/Smarty/libs/plugins/modifier.count_paragraphs.php

00001 <?php
00020 function smarty_modifier_count_paragraphs($string)
00021 {
00022     // count \r or \n characters
00023     return count(preg_split('/[\r\n]+/', $string));
00024 }
00025 
00026 /* vim: set expandtab: */
00027 
00028 ?>

Generated on Thu Apr 19 2012 17:01:16 for openbiz by  doxygen 1.7.2