Skip to content

v1.0.1

Latest

Choose a tag to compare

@BMTmohammedtaha BMTmohammedtaha released this 03 Oct 06:36

🔹 [addressValidation] Why this is better:

Works with both "Name " and just "email".

Doesn’t break if no < > is found.

Uses filter_var which is reliable for email syntax validation.

Avoids undefined $matches[2].

🔹 [emailValidation] Why better:

More concise.

Still clear and readable.

Avoids unnecessary if/else.