Hi All, Thanks for the feedback. I decided not to pursue this for PHP 8.1, but I still think it is a good idea. As Nikita explained Sara's suggestion might not work at all. While it is trivially easy to abstract this function in userland the aim is to clean up PHP. This wouldn't add new functionality to PHP, but rather provide a cleaner implementation with a self-documenting name.
I don't know when we can start RFCs for PHP 8.2 but I will try to write an implementation for this RFC in a couple of days and ask for a vote. Regards, Kamil >