| 1 | <?php  | 
            ||
| 7 | class Email extends SettableModel  | 
            ||
| 8 | { | 
            ||
| 9 | /**  | 
            ||
| 10 | * Set the type of this email address  | 
            ||
| 11 | * Possible codes are listed in the 'UserEmailTypes' code table.  | 
            ||
| 12 | *  | 
            ||
| 13 | * @param string $email_type The email type  | 
            ||
| 14 | * @param string $description The description of this email type  | 
            ||
| 15 | */  | 
            ||
| 16 | public function setEmailType($email_type, $description = null)  | 
            ||
| 24 | }  | 
            ||
| 25 | 
In PHP, under loose comparison (like
==, or!=, orswitchconditions), values of different types might be equal.For
stringvalues, the empty string''is a special case, in particular the following results might be unexpected: