Hacker News new | ask | show | jobs
by bogdanu 2127 days ago
Parameter order was somewhat resolved with the introduction of named parameters in the upcoming php 8 release from this year.
1 comments

True, but I doubt I want to use that on a simple string function. I'd actually much prefer to see the introduction of methods on strings ala Ruby and most other natively-OOP languages rather than calling the C-style functions with the strings as a parameter, but hey, it is what it is.
Not gonna happen, but you can always use Symfony's String component that has API like that.

Sure, it's not built-in, but I think this is the best solution for now given the size of PHP's language team.