title: PHP Twitter API "GET users/lookup". Grabbing screen_name from id
body: <p>I have made a simple Twitter API program that will loop through your Followers and grab all of them. It gets them by their IDs. How do I get their screen_name?</p>
  
  <p>I know I have to do something with users/lookup with user_id as one of the parameters.</p>
  
  <p>I have noticed what I think is my issue.</p>
  
  <p>The JSON code that I am trying to get to goes something like this.</p>
  
  <pre><code>[
   {
    "screen_name": "twitter"
   }
  ]
  </code></pre>
  
  <p>I have done it like (below.)</p>
  
  <pre><code>{
    "screen_name": "twitter"
  }
  </code></pre>
  
  <p>With the Lookup Function (<a href="https://dev.twitter.com/docs/api/1/get/users/lookup" rel="nofollow">https://dev.twitter.com/docs/api/1/get/users/lookup</a>) it starts with the "[".</p>
  
  <p>I was thinking I would have to do something like.</p>
  
  <p>$LookUp_JSON->[1]->screen_name
  which would then print "twitter" but it's obviously not.</p>