[prev in list] [next in list] [prev in thread] [next in thread]
List: smarty-dev
Subject: [SMARTY-DEV] number format modifier
From: Jason Sweat <jsweat_php () yahoo ! com>
Date: 2002-05-01 14:22:13
[Download RAW message or body]
I was suprised this was not already out there, does it
make sence to add to the standard Smarty distribution:
modifier.number_format.php
<?php
/*
* Smarty plugin
*
-------------------------------------------------------------
* Type: modifier
* Name: number_format
* Purpose: format strings via number_format
*
-------------------------------------------------------------
*/
function smarty_modifier_number_format($string,
$places)
{
return number_format($string, $places);
}
/* vim: set expandtab: */
?>
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
--
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic