[Solved] How to echo every var more than $var? [closed]
Using the variables into your example you can do this $i = 0; while ($i <= 3) { $varName=”var”.$i; if ($$varName > $var) { echo $$varName; } $i++; } But that is no right way to iterate over an array. There exists a million other ways to iterate over a bunch of variables and print … Read more