Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51917 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80240 invoked from network); 16 Apr 2011 12:39:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Apr 2011 12:39:46 -0000 Authentication-Results: pb1.pair.com smtp.mail=mail_ben_schmidt@yahoo.com.au; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mail_ben_schmidt@yahoo.com.au; sender-id=unknown; domainkeys=good Received-SPF: error (pb1.pair.com: domain yahoo.com.au from 98.139.91.206 cause and error) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: mail_ben_schmidt@yahoo.com.au X-Host-Fingerprint: 98.139.91.206 nm6-vm0.bullet.mail.sp2.yahoo.com Received: from [98.139.91.206] ([98.139.91.206:30092] helo=nm6-vm0.bullet.mail.sp2.yahoo.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FE/A1-00728-11E89AD4 for ; Sat, 16 Apr 2011 08:39:46 -0400 Received: from [98.139.91.67] by nm6.bullet.mail.sp2.yahoo.com with NNFMP; 16 Apr 2011 12:39:43 -0000 Received: from [98.139.91.17] by tm7.bullet.mail.sp2.yahoo.com with NNFMP; 16 Apr 2011 12:39:43 -0000 Received: from [127.0.0.1] by omp1017.mail.sp2.yahoo.com with NNFMP; 16 Apr 2011 12:39:43 -0000 X-Yahoo-Newman-Id: 381160.59550.bm@omp1017.mail.sp2.yahoo.com Received: (qmail 54770 invoked from network); 16 Apr 2011 12:39:42 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.au; h=DKIM-Signature:Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=GWE9QZ9w7ApN2O82cNpDu+DgrLWYSLwSsP7PVL9hWnuBF2AFXf9TLgrGnK6faFTT1a8IPW5/Ar673y/I8CAo72shMKPmOGxVPMbxn/hJ+PY0WEy+6k911W5sKpaNSaie87PFc24C/tn7Uw+48JD6QKV89RBZ0/K4VVaSTyvC3O8= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.au; s=s1024; t=1302957582; bh=wBQyTxNyrLv9mBc3y4aj1AaJBt6M4BgZ9dvmhRIdbYk=; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=ymP+2/bMoAbfP7F1fMyuWMDH+VtwTjEhkdE5ss0d9lfsEfOGsblTbrwQkt4X6ZeEx4WiVNbxqkUTjjNkDsC1Xe7dUuv5KhCtqeXnL6XZrFIG+UIA+TEhlg8cYgBRNYZ6j6P1CmA9DrLJlJ5AnXqClgOiPRPKY23QJ6Ne3cpkjG4= Received: from thought.local (mail_ben_schmidt@124.168.70.226 with plain) by smtp131.mail.mud.yahoo.com with SMTP; 16 Apr 2011 05:39:42 -0700 PDT X-Yahoo-SMTP: enFMnPSswBAexaHyzgobwuUTrYOhZdJ0KRA2SjA- X-YMail-OSG: pVWDTwYVM1nVEKl4Jrpi96pfPeRU7x8njepqEL7BoW4yKL5 dHTlACKbp6wiFi8YykZIEjYiQUIIJo007M44gibHIGiNbLuDrqxF3oC7wnQz sBBB6db7Pg2U5pYJz1mLy6PeBSmmoJbxXbmbbI.QvynYKdB2Ny6vq2vKs7S1 1iIuVfXLIbERgklAUY_n8lKRh._Yp__cIZxDZqGro3IVM30dciyoi5Sw1n3D IZc0tHT4bUWcWeM4n.PnOdV3ABWEAr0CP_ie03N341MJAQyfgXMyRgW7Mjzp RR3u7ITPxoizXImuODyxSQ2mQUSGX7nnlnxXgL4oickZjuSHb8LlSzFimtnI ZzNgGuVl_NHkyWtUz7D4EcnsQ1_I- X-Yahoo-Newman-Property: ymail-3 Message-ID: <4DA98E17.6080409@yahoo.com.au> Date: Sat, 16 Apr 2011 22:39:51 +1000 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 ThunderBrowse/3.3.5 MIME-Version: 1.0 To: Adam Richardson CC: PHP Development References: <718216446.20110408143441@cypressintegrated.com> <4DA0E71C.9030008@gmail.com> <4DA63ED8.4080402@yahoo.com.au> <4DA6F2BC.10706@yahoo.com.au> <4DA6FB03.9040404@yahoo.com.au> <4DA8E6D9.5080107@yahoo.com.au> <4DA98D34.1020909@yahoo.com.au> In-Reply-To: <4DA98D34.1020909@yahoo.com.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Implicit isset/isempty check on short-ternary operator From: mail_ben_schmidt@yahoo.com.au (Ben Schmidt) >> $var = $arr['key'] ?? : 'empty'; Also note this is possible with the recent proposal Hannes and I were discussing. It simply looks like $var = $arr?['key'] ?: 'empty'; The ?[ avoids notices and the ?: works as it always has. Ben.