Easiest way to

I’m in the process of writing a personality test in PHP.

I’m very new to PHP, but I’m picking it up quickly enough.

The test will work in a way that adds 1 to a personality-type variable every time the user selects an answer that relates to it.

I was wondering what the easiest way to select the largest variable (the personality type the user has selected, from choosing the most answers relating to it) at the end of the test, out of all the other variables?

Is there any ‘largest’ type of operator that will select the largest number variable out of the set?