modifiers functions

From: Date: Sun, 13 Mar 2005 00:35:59 +0000
Subject: modifiers functions
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12317@lists.php.net to get a copy of this message
Hi! I'm new working with Smarty and I have found it so much powerful. I'm spanish, so please write me in an esay english. :-) Well, I have a problem. I have a variable which contents a string and I want to cut it until 20 characters. If its lenght es less than 20 characters I would like to add space characters to make its lenght bigger, just 20 characters. I have seen modifiers function truncate, but I nedd some else. COul you tell some idea? Preferly without create a new modifier function. Thanxs!!!! :D

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