Skip to content

Instantly share code, notes, and snippets.

@jackfruh
Created July 10, 2016 16:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jackfruh/0bf476f697d1456a67d1ade945f5ff41 to your computer and use it in GitHub Desktop.
Save jackfruh/0bf476f697d1456a67d1ade945f5ff41 to your computer and use it in GitHub Desktop.
<?
$music()->
filter(function ($value,$key) {
if(strtolower($key) == 'music type' && strtolower($value) == 'jazz')
{
return true;
} else {
return false;
})->
pluck('title')->
sortBy('title')->
each(function($song) {
return ucfirst(strtolower($song['title']));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment