I get 3 values that can be low, medium, high each. Next, depending on these values, output a number. In total from 1 to 27. Writing through if is not beautiful. It turns out that something like this. And how to write it beautifully, I do not understand.
if ($_GET[smile1] == low){ if ($_GET[smile2] == low){ if($_GET[smile3] == low){ echo "1"; } } } if ($_GET[smile1] == low){ if ($_GET[smile2] == low){ if($_GET[smile3] == medium){ echo "4"; } } } if ($_GET[smile1] == low){ if ($_GET[smile2] == low){ if($_GET[smile3] == high){ echo "7"; } } }