title: CakePHP: findByEmail() function returns an array
body: <p>I have a database table Users with an id column "uid" and an email column "email".  I am executing this line of code:</p>
  
  <pre><code>$user = $this-&gt;User-&gt;findByEmail($this-&gt;data['User']['email']);
  </code></pre>
  
  <p>Where <code>$this-&gt;data['User']['email']</code> is unquestionably returning the correct email address and this email address is in the database table.  However, the result of:</p>
  
  <p><code>echo "User is :" . $user</code> = User is: Array</p>
  
  <p>I need to know how to get the value of the id out of this array.</p>
  
  <p>Any advice is appreciated.</p>
  
  <p>Regards.</p>