Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11005 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83197 invoked by uid 1010); 8 Jul 2004 23:36:40 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 83170 invoked by uid 1007); 8 Jul 2004 23:36:40 -0000 Message-ID: <20040708233640.83169.qmail@pb1.pair.com> To: internals@lists.php.net Date: Thu, 08 Jul 2004 19:36:16 -0400 User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 References: <5.1.0.14.0.20040707203931.02fa6200@mail.ionzoft.com> <40ED64A0.7050305@cschneid.com> <20040708151952.92187.qmail@pb1.pair.com> <20040708215205.23281.qmail@pb1.pair.com> <40EDD2D5.60707@php.net> <20040708231043.92522.qmail@pb1.pair.com> <40EDD58E.4040609@php.net> In-Reply-To: <40EDD58E.4040609@php.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 130.58.81.153 Subject: Re: [PHP-DEV] what happened to that new isset() like language From: contact_marcos@yahoo.es (Marc Richards) Olivier Hill wrote: > 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 > 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 +=. Marc