Skip to content

Define split as an alias for explodeΒ #17268

@nbro

Description

@nbro

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 and explode.

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 that split was introduced as an alias for explode (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 than explode? In any case, it will most likely not be as useful as explode, so we can probably sacrifice the future in this case.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions