PHP function to return the total value of the hand in Blackjack.