Validate Email Address in PHP

PHP provides built in function to check if an email address is valid or not. The following snippet of code checks the validity of email address.

The output of this code will be

Email address is invalid becuase there is a space in email address.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

scroll to top