Skip to content

Implement implode() in a future release #2

@rotexdegba

Description

@rotexdegba

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions