It may be a very strange question, but I need to be sure if it really exists or not. I've got the recruitment task for a PHP developer position with the following task:
Make a function to sum two numbers a and b but it must be called as sum(a)(b)
I've never seen anything like that and can't find anything about functions like the above. The recruiter says it's not a typo; I'm confused.
sumfunction takes one argument and returns a function which itself takes on argument. Can PHP return functions like JavaScript can?