Welcome Guest, Not a member yet? Register   Sign In
use variable in a construct sintax?
#2

[eluser]WanWizard[/eluser]
Assuming the object property title_en exists, you can use
Code:
echo $photos->{'title'.$_SESSION['lang_txt']};


Messages In This Thread
use variable in a construct sintax? - by El Forum - 09-13-2010, 01:59 AM
use variable in a construct sintax? - by El Forum - 09-13-2010, 04:19 AM
use variable in a construct sintax? - by El Forum - 09-13-2010, 04:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB