Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
ipaddr
4y ago
0 comments
Share
PHP is elegant and useful. The spread operator is ...$array is elegant. $var ? "not found"; is really elegant.
0 comments
default
newest
oldest
eloisius
4y ago
It’s also about ten years later than everyone else to get those splat and null coalesce operators so it’s not like that elegance is unique or even timely for PHP.
ipaddr
OP
4y ago
Your post is 10 years too late because we are talking about php today. PHP was elegant in different ways 10 years ago.
keyle
4y ago
I think you meant ?? or ?= ?
j
/
k
navigate · click thread line to collapse