Posted By

Victoor on 03/14/11


Tagged

twitter avatar


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

AllKnightAccess
Some0ne
janwebdev


Twitter Avatar


 / Published in: PHP
 

Easy function to get the avatar from a Twitter User

  1. <?php
  2. // Avatar de Twitter
  3. function TwitterAvatar($username) {
  4. $xml = simplexml_load_file("http://twitter.com/users/".$username.".xml");
  5. return $xml->profile_image_url;
  6. }
  7. ?>

Report this snippet  

You need to login to post a comment.