Skip to content

Instantly share code, notes, and snippets.

@fleeting
Created December 27, 2009 04:21
Show Gist options
  • Save fleeting/264152 to your computer and use it in GitHub Desktop.
Save fleeting/264152 to your computer and use it in GitHub Desktop.
$gowalla_results = simplexml_load_file('http://gowalla.com/users/fleeting/visits.atom');
$i = 1;
foreach($gowalla_results->entry as $gowalla){
if ($i <= 3) {
echo '<span id="gowalla-'.$i.'">';
echo ucfirst(substr($gowalla->summary, 15)).' on '.date("m/d/y G:i:sA", strtotime($gowalla->updated)). '<br />';
echo '</span>';
}
$i++;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment