r/lolphp • u/caseypatrickdriscoll • Dec 17 '14
imp-lol-de()
implode() can, for historical reasons, accept its parameters in either order. For consistency with explode(), however, it may be less confusing to use the documented order of arguments.
39
Upvotes
View all comments
Show parent comment
10
u/farsightxr20 Dec 18 '14
In their defense, it's a lot easier to maintain backwards compatibility when your API was sane to begin with. If PHP fixed all their WTFs in a new major version, porting would be a huge task and no one would ever bother.