PHP Function To Remove All Cookies For The Domain

This PHP function will delete all valid cookies for a domain. We’re also sanitizing the cookie variable names from invalid characters.

Read more

How to do Email Validation in PHP

Using the PHP filter_var function we can test email addresses for valid format and only unicode characters. Example usage below.

Read more

How to Test a Date for Validity in PHP

Needed a function to test if a date was valid in PHP. This function does that but it also requires an expected date format.

Read more