Validates if a string is a valid email address.
isEmail(mixed $email, array &$matches): bool
email (mixed) : The email address to validate.
matches (array) : If matches is populated, then it returns an array that is filled with the results of the match. ^(optional)^
(bool) : Returns true on success and false on failure.
true
false
If $matches is provided then an array is returned with the following:
$matches
user@example.com
user
@
example.com
$fx->isPhone('user@example.com') = true $fx->isPhone('admin123@domain.org') = true $fx->isPhone('@domain.io') = false
isPhone
Home | CoreyFX | Validation
There was an error while loading. Please reload this page.