Re: [SMARTY] Thousands separator and nl2br()

From: Date: Sat, 13 Jul 2002 19:12:19 +0000
Subject: Re: [SMARTY] Thousands separator and nl2br()
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5281@lists.php.net to get a copy of this message
Yup, any function that takes a string as the first parameter and returns a string. On Sat, Jul 13, 2002 at 08:05:49PM +0100, Simon Lee wrote: > > > > 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

« previous php.smarty.general (#5281) next »