Is it possible to combine a variable and a string to a new variable and echo it?
I have the following string:
$string = '01001'
Trying something like:
$var = $_$string
Ultimately I want to end up with a var like $_01001
that I can print. So if I have a bunch of data like:
$_01001 = 'foo';
$_01002 = 'bar';
$_01003 = 'fooz';
$_01004 = 'barz';
So echo $_01001;
would produce foo
... thanks in advance.