| 1 | <?php |
||
| 7 | class Address extends SettableModel |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Set the type of this address |
||
| 11 | * Possible values are listed in the 'UserAddressTypes' code table. |
||
| 12 | * |
||
| 13 | * @param string $address_type The address type |
||
| 14 | * @param string $description The description of this address type |
||
| 15 | */ |
||
| 16 | public function setAddressType($address_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: