savant3 - is possible to do this in php? $code->Info_.$code -


i looking @ several locations, not looking, want perform operation

$tpl = new savant3(); $tpl->info_.$db_code["name"] = $db_code["info"]; $tpl->display('index.tpl.php');  php echo $this->eprint($this->info_name); 

is possible?. thank you.

you can do

$tpl->{"info_$db_code[name]"} = $db_code["info"]; 

see manual this: http://www.php.net/manual/en/language.variables.variable.php


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -