Created
December 30, 2016 01:25
-
-
Save thecrypticace/0821549f0932534de419b07abc33d8c6 to your computer and use it in GitHub Desktop.
This file contains 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
<?php | |
$entries = json_decode(file_get_contents("whatever.json"), true); | |
$tokensPerEntry = array_map(function ($entry) { | |
return $entry["requirements"]["others"]; | |
}, $entries); | |
$tokens = array_merge([], ...$tokensPerEntry); | |
// other code here… |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment