How to create(generate) a variable from the values of other variables?

Good day!
Is it possible to create(generate) a variable from the values of other variables in php?
Suppose there are two variables with values that are not known to Us:
$a="one";
$b="two";

Next comes some code and after use:
if($one1two>0){echo '<li>'.$one1two.'</li>';}
if($one2two>0){echo '<li>'.$one2two.'</li>';}

where variable names$one1two and $one2two
depend on the values$a and $b
Thank you!
March 20th 20 at 11:34
2 answers
March 20th 20 at 11:36
Solution
March 20th 20 at 11:38
Solution
$a="one";
$b="two";
$c=$a."1".$b;

echo $$c;

Find more questions by tags PHP