Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23730 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95382 invoked by uid 1010); 27 May 2006 21:49:26 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 95367 invoked from network); 27 May 2006 21:49:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 May 2006 21:49:26 -0000 X-PHP-List-Original-Sender: jared.williams1@ntlworld.com X-Host-Fingerprint: 81.103.221.48 mta08-winn.ispmail.ntl.com Solaris 8 (1) Received: from ([81.103.221.48:55421] helo=mtaout02-winn.ispmail.ntl.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 53/E4-17316-569C8744 for ; Sat, 27 May 2006 17:49:25 -0400 Received: from aamtaout02-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com with ESMTP id <20060527214922.FBAK29040.mtaout02-winn.ispmail.ntl.com@aamtaout02-winn.ispmail.ntl.com>; Sat, 27 May 2006 22:49:22 +0100 Received: from win2ks ([82.3.16.111]) by aamtaout02-winn.ispmail.ntl.com with ESMTP id <20060527214922.NRPG24467.aamtaout02-winn.ispmail.ntl.com@win2ks>; Sat, 27 May 2006 22:49:22 +0100 Reply-To: To: "'Marcus Boerger'" , Date: Sat, 27 May 2006 22:53:28 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 In-Reply-To: <18210000279.20060527232743@marcus-boerger.de> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Thread-Index: AcaB1Lz3un/WmRBNQ62stKEi6gKUXwAAuZYg Message-ID: <20060527214922.NRPG24467.aamtaout02-winn.ispmail.ntl.com@win2ks> Subject: RE: [PHP-DEV] RFC array functions From: jared.williams1@ntlworld.com ("Jared Williams") References: <18210000279.20060527232743@marcus-boerger.de> > -----Original Message----- > From: Marcus Boerger [mailto:helly@php.net] > Sent: 27 May 2006 22:28 > To: internals@lists.php.net > Subject: [PHP-DEV] RFC array functions > > Hello internals, > > i'd like to add two array functions: > > - bool array_has_more(array $array) > > checks whether $array has more elements after current position or > if array is at last position, preferable working inside foreach Useful. > - bool array(array $array) > > cehcks whether arra position is valid (e.g. like > "key($array) !== NULL") How do you disambiguate between this and $array = array('foo', 'bar'); $anotherArray = array($array); making array(0 => array(0 => 'foo', 1 => 'bar')) Jared