I am having a basic php problem that I haven't been able to resolve and I would also like to understand WHY!
$upperValueCB = 10;
$passNodeMatrixSource = 'CB';
$topValue= '$upperValue'.$passNodeMatrixSource;
echo $topValue;
OUTPUT $upperValueCB
but 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?
$topValue = $upperValueCB . $passNodeMatrixSource;
? Why the quotes? – Quasdunk Apr 6 '13 at 14:31