Medium
What is the value of the $lengths
variable after the following code is executed ?
function foobar($item) {
return strlen($item);
}
$strings = ["javascript", "php", "python", "c++"];
$lengths = array_map("foobar", $strings);
Author: ThéoStatus: PublishedQuestion passed 1862 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!
Similar QuestionsMore questions about PHP