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