What is a lambda function in php?
Answer / 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 |
Explain about a search-friendly site looks like?
<?php include ("db.php"); $result = mysql_query("SELECT ques_id FROM questionbank order by ques_id limit 5 "); while($obj=mysql_fetch_array($result)) { $ad1[$obj['ques_id']]++;//Used an array and inserted the database query results into it. } $rand_keys=array_rand($ad1,1); //Did a random array function echo "First random id = ".$ad1[$rand_keys[0]]; echo "<br>Second random id = ".$ad1[$rand_keys[1]]; ?> <!--Its not working. Have any solution for this. -->
Tell me which function gives us the number of affected entries by a query?
Which cryptographic extension provide generation and verification of digital signatures?
Is age an interval or ratio?
How do I escape data before storing it into the database?
1.<?php echo'bsfjbsnmfbs'; ?> 2.<? ech'hjndfjkshf'; ?> 3 <? echo'naskfdjnask'; three programs are exected but which is beter why
how to upload 100mb file using .htaccess..
Which is best framework for php?
Do you know what is the difference between mysql_fetch_object() and mysql_fetch_array()?
What is isset php?
What is the substitution of submit in PHP?