-
Notifications
You must be signed in to change notification settings - Fork 7.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Define split
as an alias for explode
#17268
Comments
Hi @nbro I would suggest to discuss it in the internal mailing list. |
I wonder why people gave the thumbs down. We already have the
Unless there's a good reason not to introduce this alias, then it should be introduced. Now, I'm curious to know why the Curiously, the documentation for
|
And as @devnexen has already suggested, further discussion would be better moved to the mailing list. |
@MorganLOCode Where is the function called |
https://web.archive.org/web/20180516162407/http://www.php.net/split |
Description
One thing that I find hard to memorise is which one actually splits a string and which one actually joins an array, between
implode
andexplode
.So, when I need to join, I always use the alias
join
, but I still need to look up in the documentation which one actually splits.I've been programming mostly in Python, so that's why I highly prefer
join
and I'd also prefer thatsplit
was introduced as an alias forexplode
(again I had to check that this was the actual function).Would there be any future function that we might want to call
split
and that does something different thanexplode
? In any case, it will most likely not be as useful asexplode
, so we can probably sacrifice the future in this case.The text was updated successfully, but these errors were encountered: