Last active
May 23, 2018 23:46
-
-
Save adibhanna/81a3affa1fdec770916c29d74ffe8320 to your computer and use it in GitHub Desktop.
Software Developer
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
return array_filter($data, function($e) { | |
if((new DateTime($e->created_at))->format('M') == 'Jul') { | |
return [ | |
'name' => $e->name, | |
'price' => $e->price, | |
'created_at' => $e->created_at | |
]; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment