Hi!

> Besides, we have tools available for years now to make this behaviour
> more defined:
> 
> $counts[$key] = ($counts[$key] ?? 0) + 1;

Sure, that works. But I don't see any way this clunker is better than
$counts[$key]++


-- 
Stas Malyshev
smalys...@gmail.com

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to