want to join us? register, it's easy | help
category icon

Currying in PHP

in PHP added by goodphptutorials, on 13/7/2009 advanced tutorials curry

What happens if you don't have all the arguments handy for a function, but you want to give whatever arguments you do have now and then provide the rest of them to the function later? This is called currying, and is a core concept in functional programming. It's messy, but possible to curry functions in PHP now that closures have been added.

comment save report
 

to

(an email address)

from

(your name)

message