title: Get JSON from URL by PHP
body: <p>I have a URL that returns a JSON object like this:</p>
  
  <pre><code>[
      {
          "idIMDB": "tt0111161",
          "ranking": 1,
          "rating": "9.2",
          "title": "The Shawshank Redemption",
          "urlPoster": "http:\/\/ia.media-imdb.com\/images\/M\/MV5BODU4MjU4NjIwNl5BMl5BanBnXkFtZTgwMDU2MjEyMDE@._V1_UX34_CR0,0,34,50_AL_.jpg",
          "year": "1994"
      }
  ]
  </code></pre>
  
  <p>URL : <a href="http://www.myapifilms.com/imdb/top" rel="nofollow">http://www.myapifilms.com/imdb/top</a> </p>
  
  <p>I want to get all of the <code>urlPoster</code> value and set in a array's element, and convert array to JSON so echo it.</p>
  
  <p>How can I do it through PHP?</p>