Skip to content
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

Implement implode() in a future release #2

Open
rotexdegba opened this issue Sep 4, 2018 · 0 comments
Open

Implement implode() in a future release #2

rotexdegba opened this issue Sep 4, 2018 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@rotexdegba
Copy link
Member

Figure out a unified signature that will work for all kinds of collections.
May not make sense to add as part of CollectionInterface since the operation will vary based on the type of collection you are working with. For example, imploding a collection of integers / strings / floats will be different from imploding a collection of objects / arrays.

A variant implodeColumn($column_name, $glue) could be implemented for ArraysCollection & ObjectsCollection. implodeColumn should implode values from a specified field in each array or object in the collection.

@rotexdegba rotexdegba added the enhancement New feature or request label Sep 4, 2018
@rotexdegba rotexdegba self-assigned this Sep 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant