Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21551 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62157 invoked by uid 1010); 15 Jan 2006 22:07:25 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 62142 invoked from network); 15 Jan 2006 22:07:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jan 2006 22:07:25 -0000 X-Host-Fingerprint: 66.249.92.204 uproxy.gmail.com Received: from ([66.249.92.204:63700] helo=uproxy.gmail.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id DE/F4-13436-C97CAC34 for ; Sun, 15 Jan 2006 17:07:25 -0500 Received: by uproxy.gmail.com with SMTP id j40so504438ugd for ; Sun, 15 Jan 2006 14:07:21 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kVPLUbRYsQfoD+GGstWgPq9m8OH+IjN3+AQVOYbwldmRp0pQrCDYfCz3hALGej2TDN/k3CGAl8VV2CbZ8IBR0SU0cNPtDAkGIqJDligo1hswttu+6Inrl80n1MVod0mUqcNsZA4MFOxXhHcpEzCyAI5cvQWMG8Ae3zBi40tUPLw= Received: by 10.48.230.8 with SMTP id c8mr193674nfh; Sun, 15 Jan 2006 14:07:20 -0800 (PST) Received: by 10.48.108.6 with HTTP; Sun, 15 Jan 2006 14:07:20 -0800 (PST) Message-ID: <4858f9d90601151407t2c691609y@mail.gmail.com> Date: Sun, 15 Jan 2006 23:07:20 +0100 To: Derick Rethans Cc: Ron Korving , PHP Developers Mailing List In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <6C.F4.25674.EFD67C34@pb1.pair.com> <43C786E5.1020400@mysql.com> <43C7975A.2070504@php.net> <43C79801.7070101@mysql.com> <43C79A23.6010701@php.net> <43C79DC8.6000207@php.net> <43C79EE0.909@php.net> Subject: Re: [PHP-DEV] Re: Named arguments revisited From: stefan.walk@gmail.com (Stefan Walk) On 15/01/06, Derick Rethans wrote: > mysqli_connect( array( 'host' =3D> $host, 'port' =3D> $port ) ); > (except that it's a bit more to type). Just a small suggestion - what do you all think of creating an array implicitely on function calls like db_connect('host' =3D> $host, 'port' =3D>$port), or funcname($param1, $param2, 'foo' =3D> 'bar'). Those parts would have to be on the very end of the argument list. Would eliminate the need for "a bit more to type". function definition would be like function funcname ($p1, $p2, $params =3D array()); As I said, just a quick suggestion... Regards, Stefan Walk