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

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -