pm_Checker:: mailname Method

Checks whether the specified email name is valid.

Syntax

public static function mailname ($mail_name)

Parameters

mail_name

      A string value that specifies the email name to check.

Returns

An integer which is 1 if the email name is considered valid, 0 otherwise.

Remarks

A valid name of the email specified in the mail_name parameter can contain letters, digits, dots, '_' (underscore), '+' and '-' (hyphen) characters. It should begin with a letter, digit, underscore, or a hyphen. E.g. ann.miller-77.