RE: [SMARTY] Thousands separator and nl2br()
| From: | Simon Lee | Date: | Sat, 13 Jul 2002 19:05:49 +0000 |
| Subject: | RE: [SMARTY] Thousands separator and nl2br() | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-5279@lists.php.net to get a copy of this message | ||
>
> 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