$var1 = 'First Variable';
$var2 = 'Second Variable';
$var3 = 'Third Variable';
$number = 2;
$variable_to_get = 'var'.$number;
Lets say you want to echo out a variable depending on what $number is; e.g. in this case $number is 2 so we want to echo out $var2. How would you go about doing this without using switch statements / ifs; just directly naming a variable and showing the result?