rfc:useas
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:useas [2012/04/12 15:28] – laruence | rfc:useas [2017/09/22 13:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2012/04/12 | * Date: 2012/04/12 | ||
* Author: Xinchen Hui < | * Author: Xinchen Hui < | ||
- | * Status: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
Line 14: | Line 14: | ||
$foo = " | $foo = " | ||
| | ||
- | $func = function () ues ($foo as $dup, &$foo as $ref) { //alias name | + | $func = function () use ($foo as $dup, &$foo as $ref) { //alias name |
}; | }; | ||
| | ||
Line 44: | Line 44: | ||
var_dump($obj); | var_dump($obj); | ||
}; | }; | ||
- | } | ||
- | |||
- | public function __toString() { | ||
- | |||
} | } | ||
} | } | ||
Line 64: | Line 60: | ||
I will be keeping improve this patch. | I will be keeping improve this patch. | ||
- | |||
===== Patch ===== | ===== Patch ===== | ||
Line 72: | Line 67: | ||
===== Changelog ===== | ===== Changelog ===== | ||
* 2012-04-12 Xinchen Hui Initial version | * 2012-04-12 Xinchen Hui Initial version | ||
+ | * 2012-07-18 Xinchen Hui Open voting | ||
+ | * 2012-07-19 Xinchen Hui Draw back, add dynamic variable supporting |
rfc/useas.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1