note 93935 deleted from functions.anonymous by cmb

From: Date: Sun, 11 Aug 2019 10:54:48 +0000
Subject: note 93935 deleted from functions.anonymous by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-211837@lists.php.net to get a copy of this message
Note Submitter: gerard at visei dot nl ---- The text above the third example tries to explain that anonymous functions can inherit variables from the parent scope, but fails to properly explain how this is done: namely using the "use" keyword in the function definition. The following page has a much more detailed explanation of closures in PHP 5.3: http://wiki.php.net/rfc/closures

« previous php.notes (#211837) next »