Php 我对烂番茄API的调用有什么问题吗?它';It’只返回3部电影,而不是请求的数量?

Php 我对烂番茄API的调用有什么问题吗?它';It’只返回3部电影,而不是请求的数量?,php,file-get-contents,php-5.3,rotten-tomatoes,Php,File Get Contents,Php 5.3,Rotten Tomatoes,我对烂番茄API有一个问题,当我将限制(电影)设置为50,甚至10部电影时,它只返回一个包含3部电影的数组,而不是10或50或API调用中电影限制的任何内容。。。是什么原因造成的?我使用file\u get\u contents功能的方式是否有问题 $box_office_movies = file_get_contents('http://api.rottentomatoes.com/api/public/v1.0/lists/movies/box_office.json?limit=50&a

我对烂番茄API有一个问题,当我将限制(电影)设置为50,甚至10部电影时,它只返回一个包含3部电影的数组,而不是10或50或API调用中电影限制的任何内容。。。是什么原因造成的?我使用
file\u get\u contents
功能的方式是否有问题

$box_office_movies = file_get_contents('http://api.rottentomatoes.com/api/public/v1.0/lists/movies/box_office.json?limit=50&country=us&apikey=6gx9znu2958yeztw9tszbrzq',FILE_USE_INCLUDE_PATH);
$box_office_movies = json_decode($box_office_movies, true); 
var_dump($box_office_movies); // returns only 3 movies .. 
我有50部电影。url返回一个包含3个键的数组: {电影:{..},链接:{..},链接模板:'..'}


这里似乎很好用…

哈哈,我现在开始用了。。哈哈,我的注意力有点问题。。。谢谢
var_dump(count($box_office_movies['movies'])); // returns only 3 movies ..