Re: [SMARTY] number_format

From: Date: Fri, 25 Jun 2004 14:24:26 +0000
Subject: Re: [SMARTY] number_format
References: 1 2 3 4  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11507@lists.php.net to get a copy of this message
FYI, "@" only changes the behavior of a modifier with an array, it has nothing to do with executing PHP functions directly. from docs: "If you apply a modifier to an array variable instead of a single value variable, the modifier will be applied to every value in that array. If you really want the modifier to work on an entire array as a value, you must prepend the modifier name with an @ symbol like so: {$articleTitle|@count} (this will print out the number of elements in the $articleTitle array.)" MartXn_Troielli wrote:
I was searching around in the manual for php's number_format capability, but couldnt find anything - does it exist in smarty?
i did't find it so i used the |@ modifier invoking the number_format function Martin Troielli


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