Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62624 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12593 invoked from network); 1 Sep 2012 09:23:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Sep 2012 09:23:06 -0000 Authentication-Results: pb1.pair.com header.from=theanomaly.is@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=theanomaly.is@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.170 as permitted sender) X-PHP-List-Original-Sender: theanomaly.is@gmail.com X-Host-Fingerprint: 209.85.217.170 mail-lb0-f170.google.com Received: from [209.85.217.170] ([209.85.217.170:57086] helo=mail-lb0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DC/71-03671-8F3D1405 for ; Sat, 01 Sep 2012 05:23:05 -0400 Received: by lbbgp3 with SMTP id gp3so1725995lbb.29 for ; Sat, 01 Sep 2012 02:23:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=1rHVYqbr8VkDJP7yMJuT+NaBsGCrGuABMxFSUknQ8cU=; b=q1ToxLdhjn0Btt6xSpmFrd/YQujCGQZkIkDP+FNgdtZ+aObI1eYnkOl9B4MgAo2KUh AQJAnfAAMfLqftTAwHimmnhHL71+FRdSe3tDKi+0AyYti7oCY+ckAOgRgYJpyIoGqGBW aXRbQfX+KnZbcxQzYuZRN+8UNuyUwIqiYE5Qe6C8WBoDG/qDubFwfbzwGf6Ex2MpNB0K 9IFYymZLCpUgnZZulViOZjypJHrlYPSC5jaQEuWTvL0hUUkLa8GoyH/erv1HyW37UT0a shmSxbvyxcnSZ7rhymcqcSxClEkviNQ6f8NEFLvwr3ioXKgxBUhKWkydcyjFmnTGC72O 6ySA== MIME-Version: 1.0 Received: by 10.112.30.41 with SMTP id p9mr1642370lbh.26.1346491380965; Sat, 01 Sep 2012 02:23:00 -0700 (PDT) Received: by 10.112.8.7 with HTTP; Sat, 1 Sep 2012 02:23:00 -0700 (PDT) In-Reply-To: References: <5041CCE7.1000309@lsces.co.uk> Date: Sat, 1 Sep 2012 05:23:00 -0400 Message-ID: To: Lester Caine Cc: "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Support negative indexes for arrays and strings From: theanomaly.is@gmail.com (Sherif Ramadan) > > $array[0] = 'first element'; > $array[99999] = 'second element'; > var_dump($array); > /* > array(2) { > [99999]=> > string(14) "second element" > [0]=> > string(13) "first element" > } > */ Just correcting this as it was a copy/paste fail... The above code would produce: array(2) { [0]=> string(13) "first element" [99999]=> string(14) "second element" }