isEmail()
isEmail(string $str) : boolean
Check if the given string can be validates as a valid email address.
Parameters
string | $str | the string to be validated |
Returns
boolean —true if the given string is a valid email address, false otherwise