Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21495 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23794 invoked by uid 1010); 12 Jan 2006 18:52:53 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 23779 invoked from network); 12 Jan 2006 18:52:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jan 2006 18:52:53 -0000 X-Host-Fingerprint: 81.68.134.212 c514486d4.cable.wanadoo.nl Received: from ([81.68.134.212:19713] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 21/B4-29075-F75A6C34 for ; Thu, 12 Jan 2006 13:52:47 -0500 Message-ID: <21.B4.29075.F75A6C34@pb1.pair.com> To: internals@lists.php.net References: <11370812947200000@9866357972520000.9866341568840000> <43C688AE.80403@php.net> <43C69B2A.8000802@php.net> Date: Thu, 12 Jan 2006 19:52:39 +0100 Lines: 32 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Posted-By: 81.68.134.212 Subject: Re: [PHP-DEV] Re: Named arguments revisited From: r.korving@xit.nl ("Ron Korving") Another nice use case is querybuilders: $query = buildQuery(select: $columns, from: $tables, leftjoin: $leftjoins, limit: 10); It's nice to be able to stick to what matters, and omit everything that doesn't matter (ordinary joins, where, group by, having). With func_get_args() returning an associative array, one could also, for example, generate html tags (with parameters being attribute names with their values). Named parameters would add a lot of flavor, while being 100% backward compatible. - Ron "Hartmut Holzgraefe" wrote in message news:43C69B2A.8000802@php.net... > Andrei Zmievski wrote: > > Hartmut, there are only 2 or 3 of those functions where the order differs. > > but it's the fact that it differs at all that counts ... > > -- > Hartmut Holzgraefe, Senior Support Engineer . > MySQL AB, www.mysql.com