1 | <?php |
||
5 | class TwilioSmsMessage extends TwilioMessage |
||
6 | { |
||
7 | /** |
||
8 | * @var null|string |
||
9 | */ |
||
10 | public $alphaNumSender = null; |
||
11 | |||
12 | /** |
||
13 | * Get the from address of this message. |
||
14 | * |
||
15 | * @return null|string |
||
16 | */ |
||
17 | public function getFrom() |
||
27 | |||
28 | /** |
||
29 | * Set the alphanumeric sender. |
||
30 | * |
||
31 | * @param $sender |
||
32 | * @return $this |
||
33 | */ |
||
34 | public function sender($sender) |
||
40 | } |
||
41 |
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: