PHPで「性格」テストをしたいと思います。私は次のようなロジックでそれを作ることを考えました:
If $answer_one == "a" --> $personality_a = $personality_a+1;
If $answer_one == "b" --> $personality_b = $personality_b+1;
If $answer_one == "c" --> $personality_c = $personality_c+1;
If $answer_one == "d" --> $personality_d = $personality_d+1;
See which $personality_* is the highest one and then send the response.
どうすればこのようなものを作成できforeach($_POST as $k => $v)
ますか?