2011-03-06 3 views

답변

2
당신은 json_decode를 사용하고 true로 두 번째 매개 변수를 설정할 수 있습니다

: 당신이 allow_url_fopen 지침이 PHP를 사용하도록 설정해야 URL에서 작동하도록 file_get_contents에 대한 물론

$json = file_get_contents("http://api.twitter.com/1/users/show.json?screen_name=barackobama"); 
$json_array = json_decode($json, true); 

을() .ini.

+0

감사합니다. 정확히 내가 필요로하는 것. – vitalyp