News for hackers. Stuff that matters.
Re:PHP 8.5 alpha 1 is available for download by moebrowne on Wednesday July 09, 2025 @09:49AM (#44510034)
There is a complementary Partial Function Application RFC which, among other things, solves the one-parameter limitation. It allows a question mark to be substituted in for the piped value:

$foo |> str_replace('hello', 'hi', ?);

https://wiki.php.net/rfc/partial_function_application_v2

There are no comments on this comment yet.