Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
// ...
$sets = array_map(
function($set) {
return explode(",", end(explode(": ", $set)));
},
array_filter(
explode("\n", file_get_contents($url)),
function($set) {
return !empty($set);
}
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.