adspace


What is a lambda function in php?

Answer Posted / Abdul Kadir Quraishi

A lambda function, also known as anonymous functions or closures, in PHP is a function that can be created without a name. It's defined using the 'fn' keyword and is only available in PHP 8.0 and later versions. Lambda functions can capture variables from the outer scope and are useful for simple, one-off tasks.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is trait in php?

1065


What is the current stable version of php? What advance thing in php7?

1095


How to create a web form?

1111


Tell me what kind of things have you done on the social side?

1065


Write a program using while loop?

1118


What sized websites have you worked on in the past?

1086


How can we extract string "pcds.co.in" from a string "https://info@pcds.co.in" using regular expression of php? More on reg can you explain

1078


List some features of php that are deprecated in php7?

1024


What is the difference between htmlentities() and htmlspecialchars()?

1091


Name and explain five of the PHP error constants?

1035


hello all, I need some sample placement papers in lion bridge.. can anyone help me?

2177


sort term descripttion form, report and uery

2254


What does $_files means?

1162


Which variable declarations within a class is invalid in php?

1048


how to detect a mobile device using php

1174