Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F946809
modifier.count_words.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
531 B
Subscribers
None
modifier.count_words.php
View Options
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage PluginsModifier
*/
/**
* Smarty count_words modifier plugin
*
* Type: modifier<br>
* Name: count_words<br>
* Purpose: count the number of words in a text
* @link http://smarty.php.net/manual/en/language.modifier.count.words.php
* count_words (Smarty online manual)
* @author Monte Ohrt <monte at ohrt dot com>
* @param string
* @return integer
*/
function
smarty_modifier_count_words
(
$string
)
{
return
str_word_count
(
$string
);
}
?>
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Apr 26, 09:04 (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25461
Default Alt Text
modifier.count_words.php (531 B)
Attached To
rZED Zed
Event Timeline
Log In to Comment