Variable of variable

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • waqasahmed996
    New Member
    • Jun 2008
    • 160

    #1

    Variable of variable

    HI
    i have a trouble in smarty. i have a variable named $xyz.
    i can get value of $xyz like this {$xyz}
    now for example value of {$xyz} is abc
    now i want to get value of variable abc

    very much like $$ in PHP
    please help me out

    tell me if i am not clear in my question
    Thanks
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    Can't you simply do the conversion when assigning the value to Smarty?

    Meaning:
    Code:
    $smarty->assign('xyz', $$xyz);

    Comment

    Working...