Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73714 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46956 invoked from network); 17 Apr 2014 12:01:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Apr 2014 12:01:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.179 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 209.85.212.179 mail-wi0-f179.google.com Received: from [209.85.212.179] ([209.85.212.179:61147] helo=mail-wi0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AD/90-39661-BA2CF435 for ; Thu, 17 Apr 2014 08:01:48 -0400 Received: by mail-wi0-f179.google.com with SMTP id z2so700927wiv.6 for ; Thu, 17 Apr 2014 05:01:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=FB/G9fO+48j9rrT33U5QLgpnQCg20tyetXEZu9Pjp00=; b=RpcOps+BTSf0yGasNJEgnzxMwLD0z+Uq+HMMVAFes1sbT9usD6suG6V8nWL5qtuDQ4 Ac4LuHpBiz0ay3n2u5ko2qSIjm/3jAkZwChNF2U2SIYPClm8gDXOVLkEKdoxlij0hyg7 SQIYOsIdRhJjPvT6dqKjHZKgHNpn4vj6E6YpvuCqQ/hazBxG4dyxVh2EgJ+ozoDh42AU SE9LYwiHco/0K27TOycXHrB93o/LbKgUiOIhOVdR/tDBUzfWLjq7ur6seArqssfC0SAu gips7WUeFcT/jF5QNcTIMrBN9HYkgcM3K7PCwlaSPIZ2lzttYKJg6GLwQRkYiIwBvgI9 6sKw== MIME-Version: 1.0 X-Received: by 10.180.218.197 with SMTP id pi5mr11971925wic.21.1397736104720; Thu, 17 Apr 2014 05:01:44 -0700 (PDT) Received: by 10.217.122.142 with HTTP; Thu, 17 Apr 2014 05:01:44 -0700 (PDT) Date: Thu, 17 Apr 2014 13:01:44 +0100 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=001a1134d6d403025f04f73bccf5 Subject: Negative string offsets From: leight@gmail.com (Leigh) --001a1134d6d403025f04f73bccf5 Content-Type: text/plain; charset=UTF-8 Hi Internals, What are peoples thoughts on allowing negative string offsets, that return characters from the end of a string. Example: $string = 'foobar'; print $string[-1]; // prints 'r'; print $string[-2]; // prints 'a'; Patch: https://github.com/lt/php-src/compare/string_negative_offset Regards, Leigh. --001a1134d6d403025f04f73bccf5--