Created
July 10, 2016 16:31
-
-
Save jackfruh/0bf476f697d1456a67d1ade945f5ff41 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