-
-
Save vitr/fdc700b9ece68142fdb917ec3db871ba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
$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