Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23731 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97305 invoked by uid 1010); 27 May 2006 21:54:31 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 97290 invoked from network); 27 May 2006 21:54:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 May 2006 21:54:30 -0000 X-PHP-List-Original-Sender: helly@php.net X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:38173] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id E3/25-17316-69AC8744 for ; Sat, 27 May 2006 17:54:30 -0400 Received: from baumbart.mbo (dslb-084-063-013-138.pools.arcor-ip.net [84.63.13.138]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id 97EBE35C1DC; Sat, 27 May 2006 23:54:27 +0200 (CEST) Date: Sat, 27 May 2006 23:52:41 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1421594360.20060527235241@marcus-boerger.de> To: "Matthew C. Kavanagh" Cc: internals@lists.php.net In-Reply-To: <4478C650.7000403@teh.ath.cx> References: <18210000279.20060527232743@marcus-boerger.de> <4478C650.7000403@teh.ath.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] RFC array functions From: helly@php.net (Marcus Boerger) Hello Matthew, Saturday, May 27, 2006, 11:36:16 PM, you wrote: > Pierre wrote: >> On 5/27/06, Marcus Boerger wrote: >>> - bool array(array $array) >>> >>> cehcks whether arra position is valid (e.g. like "key($array) !== >>> NULL") >> >> I don't understand this one. >> > I think you have to listen to psychedelic music and take a hit of LSD first. Actually the point is that you cannot simply do stuff like "while(key($array))". And "while(key($array) != 0)" doesn't work either. Also "if (!key($array))" is probably different from what you expect. And of course "isset(key($array))" doens't work either. Best regards, Marcus