Re: [SMARTY] Assign & functions

From: Date: Thu, 05 Sep 2002 09:44:47 +0000
Subject: Re: [SMARTY] Assign & functions
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5934@lists.php.net to get a copy of this message
You can use $var|php_function_name to send an var through a php function that takes a single argument {assign var="len" value=$page_title|strlen} {$len} Or: {$page_title|strlen} Hope this helps, Jan Rosier * Friends may come and go, but enemies accumulate. * ----- Original Message ----- From: "Nichlas Lofdahl" <crotalus@apberget.com> To: <smarty-general@lists.php.net> Sent: Thursday, September 05, 2002 10:21 AM Subject: [SMARTY] Assign & functions > Hello everyone! > > Is it possible to do something like this with smarty? > > {assign var="len" value=strlen($string)} > > Any ideas? > > Thanks > Nichlas > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

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