How do you validate email with PHP?

Question

Hi,

What are the different ways to validate emails with PHP? And what is the preferred way?

Leave an answer