Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20211 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76929 invoked by uid 1010); 20 Nov 2005 23:18:17 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 76912 invoked from network); 20 Nov 2005 23:18:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Nov 2005 23:18:17 -0000 X-Host-Fingerprint: 66.80.117.3 longsword.omniti.com Linux 2.5 (sometimes 2.4) (4) Received: from ([66.80.117.3:37074] helo=mail.omniti.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 35/D2-11378-93401834 for ; Sun, 20 Nov 2005 18:18:17 -0500 Authentication-Results: mail.omniti.com smtp.user=george; auth=pass (LOGIN) DomainKey-Status: good X-DomainKeys: Ecelerity dk_sign implementing draft-delany-domainkeys-base-01 DomainKey-Signature: q=dns; a=rsa-sha1; c=nofws; s=test; d=omniti.com; h=Received:Message-ID:Date:From:User-Agent:X-Accept-Language:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=OWLtd+9riy0J86J5kq4OJIxAbgud/wJcx/UTQcvwBtARlSxGOO/TN9c+XAPN1YKa g2hhlHEKXeHCZeTIt4HlpnZrhm/oDlgzKFGh6X+XipGPemhkkavBkp8mzdVtQtS5 Received: from ([68.166.104.202:43374] helo=[10.0.1.11]) by mail.omniti.com (ecelerity 2.0 r(6738)) with SMTP id 2A/B2-20717-23401834 for ; Sun, 20 Nov 2005 18:18:13 -0500 Message-ID: <43810431.7070400@omniti.com> Date: Sun, 20 Nov 2005 18:18:09 -0500 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Ian P. Christian" CC: internals@lists.php.net, Christian Schneider References: <00A2E2156BEE8446A81C8881AE117F192C1BB0@companyweb> <4380F6CD.2080203@cschneid.com> <200511202228.01891.pookey@pookey.co.uk> <200511202306.33056.pookey@pookey.co.uk> In-Reply-To: <200511202306.33056.pookey@pookey.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: AW: AW: [PHP-DEV] dropping curly braces From: george@omniti.com (George Schlossnagle) Ian P. Christian wrote: >On Sunday 20 November 2005 22:27, Ian P. Christian wrote: > > >>If this change included a simple sed command that could be applied to code >>to fix 'legacy' code >> >> > >Sorry, should have included this... > >For example: > >$ cat test > > $moo{3}; > > $foo = $moo{12}; > >?> > > >$ sed -e 's/$\([a-zA-Z][a-zA-Z0-9]*\){\([0-9]*\)}/substr($\1,\2,1)/g' test > > substr($moo,3,1); > > $foo = substr($moo,12,1); > >?> > > Doesn't work to well with $$moo{1}; or $moo = array( 1 => 'foo'); $moo{1};