On Sun, Oct 20, 2024, at 19:42, Gina P. Banyard wrote:
> Hello internals,
>
> I would like to propose a short RFC to make the return value of the sort() and similar
> functions more useful:
> https://wiki.php.net/rfc/array-sort-return-array
>
> I intend for the discussion to last 2 weeks and then open the vote.
>
> Best regards,
>
> Gina P. Banyard
>
Hey Gina,
Just to make sure I understand (the RFC isn't 100% clear on this), but this is still an
in-place modification, just returning it as well. Such that
$copy = sort($original);
assert($copy === $original);
??
— Rob