PHP
<?php
// declare an unnamed function
// variable $my_func1 indicates an unnamed function
$my_func1 = function ($value1, $value2)
{
// summarize and return the result
return $value1 + $value2;
};
// call the function
$value = $my_func1(10, 20);
// show the result on the screen
print($value);
// 30
?>