1 | <?php |
||
7 | class SiteMeta |
||
8 | { |
||
9 | /** |
||
10 | * @param null|string $group |
||
11 | * @param null|string $key |
||
12 | * @param mixed $fallback |
||
13 | * @return mixed |
||
14 | */ |
||
15 | public function get( $group = null, $key = null, $fallback = null ) |
||
29 | |||
30 | /** |
||
31 | * @param string $key |
||
32 | * @param mixed $fallback |
||
33 | * @return mixed |
||
34 | */ |
||
35 | protected function normalize( array $options, $key, $fallback ) |
||
48 | } |
||
49 |
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: