Skip to content

implode and explode vs. join and split - no documentation and inconsistencies #1174

@douglassdavis

Description

@douglassdavis

Edit: smarty.net shows up in the Google search results before GitHub. There should be something at the top of all Smarty.net documentation pages that says "Ignore this and see the documentation on Github" with a link to the up to date documentation.

Ignore the rest below. This was my confusion based on the smarty.net website.

The deprecation warning for implode says use join instead.

Similarly the deprecation warning for explode says use split instead.

Documentation is here: https://www.smarty.net/docs/en/language.modifiers.tpl

There is no documentation for split or join.

Could someone add documentation for split and join?

Also, I want to echo this ticket: #1098

In PHP, join and split are aliases for implode and explode, yet they work differently in Smarty. That is counterintuitive. At the minimum that needs to be documented.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions