Is it possible to simulate closures in PHP 5.2.x not using globals?

前端 未结 4 981
抹茶落季
抹茶落季 2020-12-17 22:38

Is it possible to simulate closures in PHP 5.2.x not using globals? I could think of a way that would pass the desired variables as extra parameters to the closure but that

4条回答
  •  無奈伤痛
    2020-12-17 22:58

    Do you mean Currying like http://en.wikipedia.org/wiki/Currying

    Then http://zaemis.blogspot.com/2009/06/currying-in-php.html

    If not, never mind. :-)

提交回复
热议问题