Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View AndreiRailean's full-sized avatar
🏠
Working from home

Andrei Railean AndreiRailean

🏠
Working from home
View GitHub Profile
AFG | Afghanistan
ALB | Albania
DZA | Algeria
ASM | American Samoa
AND | Andorra
AGO | Angola
AIA | Anguilla
ATA | Antarctica
ATG | Antigua and Barbuda
ARG | Argentina
{"ABW":"Aruba",
"AFG":"Afghanistan",
"AGO":"Angola",
"AIA":"Anguilla",
"ALA":"Åland Islands",
"ALB":"Albania",
"AND":"Andorra",
"ANT":"Netherlands Antilles",
"ARE":"United Arab Emirates",
"ARG":"Argentina",
<?php
$countries = Array(
'AF' => 'Afghanistan',
'AL' => 'Albania',
'DZ' => 'Algeria',
'AS' => 'American Samoa',
'AD' => 'Andorra',
'AO' => 'Angola',
'AI' => 'Anguilla',
'AG' => 'Antigua And Barbuda',
@AndreiRailean
AndreiRailean / gist:31083
Created December 2, 2008 10:31
PHP: twitter status of user
<?php
$twit_user = 'andrei_md';
$url = 'http://twitter.com/users/show/'.$twit_user.'.json';
$twitter_user = json_decode(file_get_contents($url));
echo $twitter_user->status->text;
?>