PHP Validate Email Address
But,today in the day, a web developer can keep on top of new and recent other built-in PHP functions which do the same thing. One such function is one which validates email addresses.
The function will check the email row from the database and make sure it comes out like firstname.lastname@example.org. It will not output garbage like aaaaa.com or anything not resembling a real email address. It does not go all the way and check if the address exists, but the output still looks good on the screen.
below is an example of the PHP built-in function to validate email addresses.