Am stuck here!
$part_one = "abc";
$v = "one";
echo $part_???; // should output "abc"
How do I modify ??? to reference $v?
Thanks!
Am stuck here!
$part_one = "abc";
$v = "one";
echo $part_???; // should output "abc"
How do I modify ??? to reference $v?
Thanks!
You need variable variables:
echo ${'part_'.$v};
// or
$var = 'part_'.$v;
echo $$var;