title: How do I handle responses as arrays? (Facebook PHP SDK)
body: <p>I'm new to the Facebook SDK and i'm sure this is dead easy to do, however I can't seem to figure it out. </p>
  
  <p>Basically after I authenticate i want to get some information from the user's profile. This works fine for things such as name or username:</p>
  
  <pre><code>$user_profile = $facebook-&gt;api('/me','GET');
  echo "Welcome " . $user_profile['name'];
  </code></pre>
  
  <p>this returns: "Welcome Name Lastname" which is fine, however if I try something like </p>
  
  <pre><code>$user_profile = $facebook-&gt;api('/me','GET');
  echo "Welcome " . $user_profile['hometown'];
  </code></pre>
  
  <p>This returns as: "Welcome Array" instead of "Welcome Los Angeles", what I want it to do is to dispay the name of the hometown. I tried some things that I thought would work but I couldn't figure it out so if someone could point me to the right direction i'd be very grateful!</p>