title: PHP array output specific key and/or value
body: <p>I want to grab specific values based on keys in my PHP array.</p>
  
  <p>I am getting a whole bunch of unwanted syntax.
  I am using this library for API calls to a Insightly CRM <a href="https://github.com/Insightly/insightly-php" rel="nofollow">https://github.com/Insightly/insightly-php</a></p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;?php
      echo "&lt;h1&gt;PHP Insightly Test&lt;/h1&gt;";
      require("insightly.php");
      $i = new Insightly('apikey');
      $contacts = $i-&gt;getContacts();
  ?&gt;
  &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;?php
      $array = array(); 
      foreach ($contacts as $contact)
      {
          $array[] = $contact;
      }
      print_r($array[1]);
  ?&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>Webpage output as follows:</strong></p>
  
  <p><code>stdClass Object ( [CONTACT_ID] => 1234567 [SALUTATION] => [FIRST_NAME] => Frank [LAST_NAME] => Foster [BACKGROUND] => [IMAGE_URL] => <a href="http://dfvd" rel="nofollow">http://dfvd</a> [DEFAULT_LINKED_ORGANISATION] => [OWNER_USER_ID] => 343435 [DATE_CREATED_UTC] => 2015-11-22 21:46:25 [DATE_UPDATED_UTC] => 2015-11-22 21:52:19 [VISIBLE_TO] => EVERYONE [VISIBLE_TEAM_ID] => [VISIBLE_USER_IDS] => [CUSTOMFIELDS] => Array ( ) [ADDRESSES] => Array ( ) [CONTACTINFOS] => Array ( [0] => stdClass Object ( [CONTACT_INFO_ID] => 34353453 [TYPE] => EMAIL [SUBTYPE] => [LABEL] => Work [DETAIL] => email@email.com ) ) [DATES] => Array ( ) [TAGS] => Array ( ) [LINKS] => Array ( ) [CONTACTLINKS] => Array ( ) [EMAILLINKS] => Array ( ) )</code></p>
  
  <p>I require individual values </p>
  
  <p>e.g (first name / last name) - Frank Foster</p>
  
  <p>I tried <code>print_r($array[1]['FIRST_NAME']);</code>? but had no luck. Wondering if I need to encode or decode? Unsure the answer to this.</p>
  
  <p>Thanks.</p>