> > On Aug 24, 2024 at 5:16 PM, <Rob Landers (mailto:rob@bottled.codes)> wrote: > > > > I'm not sure what you mean here. I use this method all the time :) much to > the chagrin of some of my coworkers. > > > > function stuff($foo = 'bar', $baz = 'world'); > > > > stuff(...[ ...($foo ? ['foo' => $foo] : []), ...($baz ? ['baz' => $baz] : > [])]); > > And you are one who complains about gotos! 😲 -Mike
- [PHP-DEV] [RFC] Default expression Bilge
- Re: [PHP-DEV] [RFC] Default expression Matthew Weier O'Phinney
- Re: [PHP-DEV] [RFC] Default expression Rob Landers
- Re: [PHP-DEV] [RFC] Default expression Bilge
- Re: [PHP-DEV] [RFC] Default expression Mike Schinkel
- Re: [PHP-DEV] [RFC] Default expressi... Rob Landers
- Re: [PHP-DEV] [RFC] Default expression Ben Ramsey
- Re: [PHP-DEV] [RFC] Default expression Juliette Reinders Folmer
- Re: [PHP-DEV] [RFC] Default expression Larry Garfield
- Re: [PHP-DEV] [RFC] Default expression Rob Landers
- Re: [PHP-DEV] [RFC] Default expression Bilge
- Re: [PHP-DEV] [RFC] Default expressi... Rowan Tommins [IMSoP]