What does this function do:
tests whether $variable is a number and ends in 2
tests whether $variable ends in 2
tests whether $variable is a number and contains 2
tests whether $variable is an even number