php2go/fixtures/0013-closures.php

10 lines
104 B
PHP
Raw Normal View History

2020-04-11 00:46:28 +00:00
<?php
const FOO = 'X';
$x = function(string $param): string {
return $param . FOO;
};
echo $x("x");