- Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.30, 5.6.7 - 5.6.14
- Parse error: syntax error, unexpected '$somethingUseful' (T_VARIABLE) in /in/PCMMn on line 5
Process exited with code 255.
<?php
$somethingUseful = "and in case I don't see you again, goodafternoon, goodevening, and goodnight!";
$closureFunction = function($str = $somethingUseful) {
return $str;
};
echo $closureFunction();