Last active
February 28, 2016 17:02
-
-
Save psychoticbeef/3d9583f42f182f6eb0e8 to your computer and use it in GitHub Desktop.
list all di.fm radio stations as a one liner @see https://gist.github.com/psychoticbeef/23b49421b0720c030786
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 | |
$json = file_get_contents('http://listen.di.fm/public3'); | |
$j = json_decode($json, true); | |
$l = array(); | |
foreach ($j as $item) { | |
$l []= $item['key']; | |
} | |
sort($l); | |
echo join(' ', $l); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment