Skip to content

Instantly share code, notes, and snippets.

@acidtib
Created February 22, 2012 05:16
Show Gist options
  • Save acidtib/1881639 to your computer and use it in GitHub Desktop.
Save acidtib/1881639 to your computer and use it in GitHub Desktop.
pull workers
<?php
$string = file_get_contents("https://www.bitlc.net/api/user_data/a5J5hCfN3jmJ4fumx8jD");
echo '<div style="display: none;"> '.$string.' </div>';
$json_a=json_decode($string,true);
// array method
foreach($json_a[workers] as $w)
{
echo ' Username: '.$w[id].' '.$w[username].'
Worker: '.$json_a[nickname].'<br />
';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment