Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13673 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43975 invoked by uid 1010); 1 Nov 2004 17:11:45 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 43837 invoked by uid 1007); 1 Nov 2004 17:11:43 -0000 Message-ID: <20041101171143.43830.qmail@pb1.pair.com> To: internals@lists.php.net References: <418294D9.4070700@prohost.org> <20041029193421.9557.qmail@pb1.pair.com> <5.1.0.14.2.20041029162045.0439b9c0@localhost> <20041031093753.74166.qmail@pb1.pair.com> <42285846.20041031233522@marcus-boerger.de> <41856AEF.4060501@php.net> <4e89b426041031172932ada70f@mail.gmail.com> <1152524831.20041101030445@marcus-boerger.de> <24e5f3b7041031220372d44413@mail.gmail.com> <41864BCA.5050701@prohost.org> <41865046.6040501@hristov.com> <41865411.2060905@prohost.org> <41865EA3.2090206@hristov.com> Date: Mon, 1 Nov 2004 09:11:42 -0800 Lines: 17 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response X-Posted-By: 64.142.6.231 Subject: Re: [PHP-DEV] Re: Negative string offset support From: pollita@php.net ("Sara Golemon") >> Substr_replace() for the purpose of changing one char is like using a >> tank for a fly swatter, it may work but it is extremely inefficient. >> > the example wasn't clear but I stated with substr_replace() there is no > need > for ranges in {}. > I like {$s,$l} and/or {$s:$e} for read, but I can see using that kinda syntax for write getting REALLY messy. So: -1 on write acces using {,} or {:} and if it doesn't work for write then making it work for read is inconsistent so -1 on the whole concept. Still +1 on $str{$negOffset} though, speed aside, it's readable and cute. -Sara