-
PHP BASICS HELP +REP
Hello,
I'm sure there is a really easy answer to this. How do I put a variable in a variable? I think it involves a '.' or two.
For example I want to do something like this:
Code:
$variable1 = 'blahblah$variable2blabla';
But I want $variable2 to be showing as what it is in that place.
Thanks to any help in advance. Will +rep.
-
Code:
$variable1 = 'blahblah' . $variable2 . 'blabla';
-
Quote:
Originally Posted by
Blob
Code:
$variable1 = 'blahblah' . $variable2 . 'blabla';
Thank you very much. Sorted now, thread closed.