PHP: New variable from string concatenated with variable (variable-variables)

affopayunfami

New Member
I am having a basic php problem that I haven't been able to resolve and I would also like to understand WHY!\[code\] $upperValueCB = 10; $passNodeMatrixSource = 'CB'; $topValue= 'http://stackoverflow.com/questions/15852121/$upperValue'.$passNodeMatrixSource; echo $topValue;\[/code\]OUTPUT $upperValueCBbut I want OUTPUT as the variable's value 10.How can I make PHP read the $dollar-phrase as a variable and not a string?
 
Back
Top