$closure = function($param) { echo $param; };
//This one takes value of someVar and "stores" it in the closures scope even if
//we later change the value of someVar outside it.
// We assume that $somerVar is defined before this
$closure2 = function($param) use ($someVar) { echo $param . . $someVar; };