RE: [SMARTY] Thousands separator and nl2br()
| From: | Peter Billen | Date: | Sat, 13 Jul 2002 19:09:58 +0000 |
| Subject: | RE: [SMARTY] Thousands separator and nl2br() | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-5280@lists.php.net to get a copy of this message | ||
It's even possible to "add" your own functions! = modifier
Check the Smarty/plugins directory.
Peter
-----Original Message-----
From: Simon Lee [mailto:simon.lee@leapforward.net]
Sent: zaterdag 13 juli 2002 21:06
To: smarty-general@lists.php.net
Subject: RE: [SMARTY] Thousands separator and nl2br()
>
> You can easily filter your variables through php functions
> such as {$number|number_format} (for the , separator in
> numbers) and {$sometext|nl2br}.
>
Ah ha! Cheers for that Ben -- that is brilliant! Where was this
documented? I don't think I saw this in the Smarty docs from the 2.2
distribution.
Can this {$sometext|some_function} syntax apply to most of the PHP
functions?
simon
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php