[Smarttemplate-cvscommit] smarttemplate/smarttemplate_extensions smarttemplate_extension_count.php,
Brought to you by:
codeworxtech
|
From: EndelWar <end...@us...> - 2007-01-01 02:16:43
|
Update of /cvsroot/smarttemplate/smarttemplate/smarttemplate_extensions In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv27403 Added Files: smarttemplate_extension_count.php Log Message: New extension: count --- NEW FILE: smarttemplate_extension_count.php --- <?php /** * SmartTemplate Extension count * count element of an array * * Usage Example: * Content: $template->assign('list', array('a','b')); * Template: count: {count:list} * Result: count: 2 * * @author Manuel `EndelWar` Dalla Lana end...@ar... * * CVS ID: $Id: smarttemplate_extension_count.php,v 1.1 2007/01/01 02:16:40 endelwar Exp $ */ function smarttemplate_extension_count ( $param ) { $temp = count( $param ); return $temp; } ?> |