Skip to content

Instantly share code, notes, and snippets.

@buchin
Last active December 16, 2025 05:30
Show Gist options
  • Select an option

  • Save buchin/b83e28e662a8b363ffeb to your computer and use it in GitHub Desktop.

Select an option

Save buchin/b83e28e662a8b363ffeb to your computer and use it in GitHub Desktop.
<?php
$keywords = json_decode(file_get_contents('http://dojo.cx/api/trends/ID/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