by 9dev · 3d ago · 0 comments
$result = ' PHP 8.6 '
|> trim(...)
|> strtolower(...)
|> str_replace(' ', '-', ?)
|> (fn(string $s): string => match ($s) {
'php-8.6' => 'New hotness!',
default => 'Something else',
});
People always seem to get hung up on the standard library and the runtime, but the language itself is amazing by now.I think scripting languages tend to represent too great an attack surface, for humdrum reasons (like over-capable default configurations).
So I welcome this effort (not least because I quite like Go)
There's a lot to criticise about PHP, but also a lot to like.