On Thu, Sep 12, 2019 at 9:55 AM Claude Pache <claude.pa...@gmail.com> wrote:
> > > > Le 12 sept. 2019 à 15:33, Marco Pivetta <ocram...@gmail.com> a écrit : > > > > $foo[$key1][$key2] = ($foo[$key1][$key2] ?? 0) + 1; > > > > Marco Pivetta > > That violates blatantly DRY (twice the exact same lengthy expression > `$foo[$key1][$key2]`), so it is not a satisfactory solution. > > And that's why PHP is so awesome. You don't have to do all these stupid tricks just to do something simple like increment a counter. But, it looks like we're going to throw that out of the window because some people think that since they like doing it like the way above, everyone should have to. > —Claude > > -- Chase Peeler chasepee...@gmail.com