Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48348 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55420 invoked from network); 19 May 2010 11:57:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 May 2010 11:57:24 -0000 Authentication-Results: pb1.pair.com header.from=mathiasgrimm@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=mathiasgrimm@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: mathiasgrimm@gmail.com X-Host-Fingerprint: 209.85.160.170 mail-gy0-f170.google.com Received: from [209.85.160.170] ([209.85.160.170:39912] helo=mail-gy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2A/24-34085-222D3FB4 for ; Wed, 19 May 2010 07:57:22 -0400 Received: by gyf2 with SMTP id 2so3385588gyf.29 for ; Wed, 19 May 2010 04:57:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=Vsw7hbWH4WqCa4hg8N6GfGvrs7vcIVwkCtre4cS5rrc=; b=MLy/O30wjXamsNt0pjF9p7SVKqLCMTknkC2GT10yWRhipZ3l8uBCQMCpmZW4o+fqC5 6Y2TuL5QZVvd1u9DK7MfZyAXREkWmd495J9ZRo6HycUyzgW5kd8gAe0xJjq7gcmzynS5 r8SywuOQSupkcHY3ixayHQ+VrSw7pq5aS85aE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=GddRYp143k5zR7xGElERy6XlP8IUgSiTBejtYPa/hRzZJiTa1EVbjuuf+Mya1TCwQL 72B94lrVfdzJAB+IqzRVJGwGzX1rIT7o4BP0wxqKi4BN54G9htYXTuI18AXKdixzMuQY t4nvgFEeayfvUT/07Nj+IAQBzb0xfI/k6octU= MIME-Version: 1.0 Received: by 10.100.74.34 with SMTP id w34mr9310718ana.194.1274270238976; Wed, 19 May 2010 04:57:18 -0700 (PDT) Received: by 10.100.137.18 with HTTP; Wed, 19 May 2010 04:57:18 -0700 (PDT) In-Reply-To: <4BF3CEF3.6070805@cschneid.com> References: <4BF31F28.9030201@sugarcrm.com> <4BF3CEF3.6070805@cschneid.com> Date: Wed, 19 May 2010 08:57:18 -0300 Message-ID: To: Christian Schneider Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=001636b2b859f12c0f0486f128b8 Subject: Re: [PHP-DEV] [SUGGEST] - passthru From: mathiasgrimm@gmail.com (Mathias Grimm) --001636b2b859f12c0f0486f128b8 Content-Type: text/plain; charset=ISO-8859-1 On Wed, May 19, 2010 at 8:43 AM, Christian Schneider wrote: > If you want to have multiple dynamic arguments to pass on like this I'd > suggest you use one associative array as parameter instead. > > Like > function a($p = array()) { ... } > function aa($p = array()) { a($p); } > aa(array("foo" => 42, "bar" => 17)); > with the additional benefit of having named (and extensible) parameters > as an added bonus. > > - Chris > array cant be type hinting defined. i will need to do some extra work checking type in the reciever function. -- Mathias Grimm Sun Certified Java Programmer 6.0 #SUN604760 Zend Certified Engineer #ZEND006756 http://mathiasgrimm.com.br http://phpempregos.com.br --001636b2b859f12c0f0486f128b8--