I am using 5.3.10 and trying to create closures in following manner, but it gives parse error. Can anyone tell me why it is giving parse error?
class ABC {
public static $funcs = array(
'world' => function() {
echo "Hello,";
echo "World!\n";
},
'universe' => function() {
echo "Hello,";
echo "Universe!\n";
},
);
}