Edit report at https://bugs.php.net/bug.php?id=62552&edit=1

 ID:                 62552
 Updated by:         larue...@php.net
 Reported by:        k at webnfo dot com
 Summary:            Feature Request: Closure parameter syntax
                     enhancement
-Status:             Open
+Status:             Duplicate
 Type:               Feature/Change Request
 Package:            *General Issues
 PHP Version:        5.4.4
 Block user comment: N
 Private report:     N

 New Comment:

this is a dup to #61682


Previous Comments:
------------------------------------------------------------------------
[2012-07-13 13:22:01] k at webnfo dot com

Description:
------------
Add 'AS' keyword after 'USE'

It will work like this:

function($quantity, $product) use ($tax AS $t , &$total as $a){
  echo $t; //$t is the local name alias of $tax
}

If implemented, will be more consistent with namespace's use .. as .. statement



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=62552&edit=1

Reply via email to