Re: [SMARTY] concatinating string with variable

From: Date: Thu, 18 Sep 2003 20:07:44 +0000
Subject: Re: [SMARTY] concatinating string with variable
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10237@lists.php.net to get a copy of this message
Hi! Of course it works but you had luck it is "2 nights" but not "nights 2". The answer is because of PHP type juggling. For more info see: http://ba.php.net/language.types.type-juggling and http://ba.php.net/manual/en/language.types.string.php#language.types.string.conversion Smarty is only PHP class, it is not an interpreter. Best regards, Zoran Gerard L Petersen <gerard@gamelink.co.za>: > Hey all > > > How would i test for some thing like this > > {if $duration == $smarty.section.i.index." nights"} > > > eg = "2 nights" > > > for some reason this works > > {if $duration == $smarty.section.i.index} > > > -Gerard L Petersen

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