Re: Re: Named arguments revisited

From: Date: Thu, 12 Jan 2006 18:52:39 +0000
Subject: Re: Re: Named arguments revisited
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-21495@lists.php.net to get a copy of this message
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" <hartmut@php.net> 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

« previous php.internals (#21495) next »