Skip to content

Instantly share code, notes, and snippets.

@vitr
Forked from jackfruh/anonymess.php
Last active July 25, 2016 03:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vitr/fdc700b9ece68142fdb917ec3db871ba to your computer and use it in GitHub Desktop.
Save vitr/fdc700b9ece68142fdb917ec3db871ba 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