Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32691 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53310 invoked by uid 1010); 7 Oct 2007 23:39:55 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 53295 invoked from network); 7 Oct 2007 23:39:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Oct 2007 23:39:55 -0000 Authentication-Results: pb1.pair.com header.from=aderyn@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=aderyn@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.162.238 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: aderyn@gmail.com X-Host-Fingerprint: 64.233.162.238 nz-out-0506.google.com Received: from [64.233.162.238] ([64.233.162.238:64308] helo=nz-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5B/E1-31471-A4E69074 for ; Sun, 07 Oct 2007 19:39:54 -0400 Received: by nz-out-0506.google.com with SMTP id x7so572091nzc for ; Sun, 07 Oct 2007 16:39:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=RF339OqZd+QVjYb+ZdsLzvRThpUsR8bRuZ06xRzZCZI=; b=OdgD6dY9EkX1T6w8YOCUiNr8uXLtUjpl9525nOmyHa1pyAkWwXuZF/FVbf0jEHH85D43X7xLowhRuVWPEeZDnjgxUBnl1E91ucK7jh5Um0Kpu+fGZHXsQUgJrhmnx857cuKr7qRFZnAaQlj+1d00JgAZfno1aHZuS4BbFFzi/ng= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=B0THwqOrORAsO95sabz/1yR4/hyKMt6z9oH9qIQ8leRFTfbr0xEwQQyWpEbo4XLmS9Rjh8q8UTaCxnangOACuY/rSHdHoFN0oaPZkduEph5yObJxORCSHE0aQtKQcLBJMcgmU5zQbq0cIdyUmjCvPr/g8RbHUzxwZYJ7ysonscM= Received: by 10.142.178.13 with SMTP id a13mr1918587wff.1191800391189; Sun, 07 Oct 2007 16:39:51 -0700 (PDT) Received: by 10.142.106.17 with HTTP; Sun, 7 Oct 2007 16:39:51 -0700 (PDT) Message-ID: <3b46aad60710071639x579be029ta36868b1715cbc0@mail.gmail.com> Date: Mon, 8 Oct 2007 01:39:51 +0200 Sender: aderyn@gmail.com To: internals@lists.php.net In-Reply-To: <4707ED46.6040206@daylessday.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200710042005.30734.larry@garfieldtech.com> <285930281.20071006200938@marcus-boerger.de> <200710061338.47307.larry@garfieldtech.com> <4707D8AA.9060905@daylessday.org> <4707ED46.6040206@daylessday.org> X-Google-Sender-Auth: c77104ee9b778923 Subject: Re: [PHP-DEV] substr/array_slice in [] From: aderyn@c0la.se ("Emil Hernvall") On a related note. Code like: $foo = array("a" => range(1,10), "b" => range(11,20)); print_r($foo[][0]); results in Fatal error: Cannot use [] for reading in Command line code on line 3 It would be incredibly useful when handling regular two-dimensional database-resultsets. Essentially, what I'm after is things like this: $result = $pdo->fetchAll(PDO::FETCH_ASSOC); $result = array_combine(result[]['my_id'], $result); If I prepared a patch that made this possible, would it be considered for inclusion? Is there any issues I've overlooked or other objections?