Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21829 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59541 invoked by uid 1010); 9 Feb 2006 22:10:15 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 59526 invoked from network); 9 Feb 2006 22:10:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Feb 2006 22:10:15 -0000 X-Host-Fingerprint: 80.249.110.212 xian.ncuk.net Linux 2.5 (sometimes 2.4) (4) Received: from ([80.249.110.212:44252] helo=xian.ncuk.net) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 26/30-35443-7CDBBE34 for ; Thu, 09 Feb 2006 17:10:15 -0500 To: internals@lists.php.net Date: Thu, 9 Feb 2006 22:10:06 +0000 User-Agent: KMail/1.9.1 Cc: Sean Coates References: <200602092154.01908.pookey@pookey.co.uk> <43EBBD74.8010703@caedmon.net> In-Reply-To: <43EBBD74.8010703@caedmon.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200602092210.06390.pookey@pookey.co.uk> Subject: Re: [PHP-DEV] 'odd' handling of $moo['bar'] where $moo is a string From: pookey@pookey.co.uk ("Ian P. Christian") On Thursday 09 February 2006 22:08, Sean Coates wrote: > It's cast to an integer. Ahh.. I see. That does make sense now as to why it results in the first char in the array - however I still think it makes more sense not to cast, but rather to give a fatal error. Thanks, -- Ian P. Christian http://pookey.co.uk