On Friday 12 September 2025 12:19:19 (+02:00), Dušan Kreheľ wrote:
> A proposal to add syntactic sugar for array_push() in PHP.
>
> Syntax:
> // now
> array_push($array, 1);
>
> // new syntax
> $array[+]=1;
// old
$array[] = 1;
>
> Dušan Kreheľ
>
-- hakre
- [PHP-DEV] [RFC proposal] Syntactic sugar for array ... Dušan Kreheľ
- Re: [PHP-DEV] [RFC proposal] Syntactic sugar f... Ken Guest
- Re: [PHP-DEV] [RFC proposal] Syntactic sug... Dušan Kreheľ
- Re: [PHP-DEV] [RFC proposal] Syntactic... Rob Landers
- Re: [PHP-DEV] [RFC proposal] Synta... Dušan Kreheľ
- Re: [PHP-DEV] [RFC proposal] ... Rowan Tommins [IMSoP]
- Re: [PHP-DEV] [RFC propos... Morgan
- Re: [PHP-DEV] [RFC propos... Alexandru Pătrănescu
- [PHP-DEV] Re: [RFC proposal] Syntactic sugar f... Dušan Kreheľ
- Re: [PHP-DEV] [RFC proposal] Syntactic sugar f... Hans Krentel
