Skip to content

[9.x] Adds Arr::join() - #42197

Merged
taylorotwell merged 3 commits into
laravel:9.xfrom
ecrmnn:arr.join
May 2, 2022
Merged

taylorotwell merged 3 commits into
laravel:9.xfrom
ecrmnn:arr.join

Conversation

@ecrmnn

@ecrmnn ecrmnn commented Apr 30, 2022

Copy link
Copy Markdown
Contributor

This PR adds join method from Collections to Arr.

$stack = ['Tailwind', 'Alpine', 'Laravel', 'Livewire'];

Arr::join($stack, ', ', ' and ');

// Tailwind, Alpine, Laravel and Livewire

@DarkGhostHunter

Copy link
Copy Markdown
Contributor

Should the Collection use then Arr::join() instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants