How to get number of YouTube video views by php

[php]<?php
$video_ID = ‘your-video-ID’;
$JSON = file_get_contents("http://gdata.youtube.com/feeds/api/videos?q={$video_ID}&alt=json");
$JSON_Data = json_decode($JSON);
$views = $JSON_Data->{‘feed’}->{‘entry’}[0]->{‘yt$statistics’}->{‘viewCount’};
echo $views;
?>
[/php]