mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
$this was not available in closures
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@312786 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
065db8a473
commit
d764b87c4f
1 changed files with 7 additions and 0 deletions
|
@ -758,6 +758,13 @@ print $my_cart->getTotal(0.05) . "\n";
|
|||
</simpara>
|
||||
</note>
|
||||
|
||||
<note>
|
||||
<simpara>
|
||||
It was not possible to use <varname>$this</varname> from anonymous
|
||||
function before PHP 5.4.0.
|
||||
</simpara>
|
||||
</note>
|
||||
|
||||
<note>
|
||||
<simpara>
|
||||
It is possible to use <function>func_num_args</function>,
|
||||
|
|
Loading…
Reference in a new issue