This quote means that humor has the power to change any situation, even if it is difficult, and help us cope in the moment when we are laughing. For example, when you are feeling sad or worried, you might try to make yourself or someone else laugh, and in that moment of laughter, your mood can be transformed and it can help you to cope with the difficult situation.