Login +

Documentation

SLS_String::validateEmail

Since SillySmart 1.0

Description

Validate an email
static bool validateEmail ( string $email);

Parameters

  • string $email
    the email to test

Return

bool $isEmail
true if it's a correct email, else false

Exemples

  •  var_dump(SLS_String::validateEmail("laurent@sillysmart.org"));
     // will produce : true
  •  var_dump(SLS_String::validateEmail("laurent@sillysmart"));
     // will produce : false

Comments

No comment on this function, be the first !

Add your comment

You must login/register to post a reply.