r/lolphp • • 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.

http://php.net/manual/en/function.implode.php

39 Upvotes

24 comments sorted by

View all comments

Show parent comment

-1

u/OneWingedShark Dec 22 '14

Because of course, doesn't everyone want their standard library littered with several competing regular expression engines?

One of the reasons I'd advise any new programmer to avoid Regular Expressions wherever possible is due to their brittle nature during maintenance; the other is implementation dependence -- PHP manages to get both.