title: Assign element from array to variable?
body: <p>I am trying to pull an element out of an array to assign it to a variable, but not having much luck so far... This is my code.</p>
  
  <pre><code>$email = $clientEmail;
  $returnFields = array('Id', 'FirstName');
  $data = $app-&gt;findByEmail($email, $returnFields);
  if($debug){
      echo "&lt;pre&gt;Contact Info:";
      print_r($data[0]);
      echo "ID is:";
      list($contactId, $contactName) = $data[0];
      echo $contactId;
      echo "&lt;/pre&gt;";
  }
  </code></pre>
  
  <p>Which returns this...</p>
  
  <pre><code>Contact Info:Array
  (
  [FirstName] =&gt; Scooby1
  [Id] =&gt; 59871
  )
  ID is:
  </code></pre>
  
  <p>I've tried using the list(), explode(), and implode(), but I can't seem to pull [Id] out and assign it's value to a variable. How else can I go about this? </p>