Re: what happened to that new isset() like language
| From: | Marc Richards | Date: | Thu, 08 Jul 2004 23:36:16 +0000 |
| Subject: | Re: what happened to that new isset() like language | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-11005@lists.php.net to get a copy of this message | ||
Olivier Hill wrote:
Marc Richards wrote:Right. Sorry. I meant. $a = isset($b) ? $b : $c; But my point is that you won't be FORCED to use the new operator, just like you aren't FORCED to use +=. MarcWhat? 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