Re: what happened to that new isset() like language
| From: | Olivier Hill | Date: | Thu, 08 Jul 2004 23:15:26 +0000 |
| Subject: | Re: what happened to that new isset() like language | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-11001@lists.php.net to get a copy of this message | ||
Marc Richards wrote:
What? Why? There is obviously a way around it, because that is what people are using now. $a = $b ? $b : $c;If $b is not set, it will throw notices. The correct way is something similar to: $a = (!isset($b) && !isnull($b)) ? $b : $c Which defeats the whole reason of introducing the new ifsetor() operator. Sincerely, Olivier -- GB/E/IT d+ s+:+ a-- C++$ UL++++$ P++++ L+++$ E- W++$ N- ?o ?K w--(---) !O M+$ V- PS+ PE- Y PGP t++ 5-- X+@ R- tv++ b++(+++) DI++++ D+ G++ e+>++ h(*) r y+(?)