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_sentences.php
Go to the documentation of this file.
1
<?php
21
function
smarty_modifier_count_sentences
($string)
22
{
23
// find periods with a word before but not after.
24
return
preg_match_all(
'/[^\s]\.(?!\w)/'
, $string, $match);
25
}
26
27
/* vim: set expandtab: */
28
29
?>
L:
0xoops
xoops-2.5.6
htdocs
class
smarty
plugins
modifier.count_sentences.php
Generated on Fri May 10 2013 01:04:24 for XOOPS 2.5.6 by
1.8.3.1