Skip to content

Instantly share code, notes, and snippets.

@buchin
Created September 22, 2015 16:07
Show Gist options
  • Save buchin/b83e28e662a8b363ffeb to your computer and use it in GitHub Desktop.
Save buchin/b83e28e662a8b363ffeb to your computer and use it in GitHub Desktop.
<?php
$keywords = json_decode(file_get_contents('http://tools.dojo.cc/api/trends/p19/keywords'), true);
foreach($keywords as $keyword){
echo '<a href="http://domain.com/tag/'. str_replace(' ', '-', $keyword) . '">' . $keyword . '</a>, ';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment