Re: [SMARTY] BROKE: var names with spaces

From: Date: Mon, 10 Feb 2003 15:43:42 +0000
Subject: Re: [SMARTY] BROKE: var names with spaces
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7620@lists.php.net to get a copy of this message
actually it shouldn't work regardless of the space: {$var['foo']} <-- invalid syntax! the array key must be accessed as: {$var.foo} In this context, the space couldn't work anyways. You could do this: {$var.$foo} where $foo contains spaces. Monte On Mon, 2003-02-10 at 01:09, Gerard wrote: > This doesn't appear to work any more (2.4.1): > > {$var['with space']} > > Doesn't like the 's or the space. Possible to use at all? > > Gerard -- Monte Ohrt <monte@ispi.net>

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