title: How to use echo in php array to return as a string
body: <p>I am trying to return an array of strings.  I do this:</p>
  
  <pre><code>$errors[] = toolbarCheckCreds($_COOKIE['uname'], $_COOKIE['pword'], $_COOKIE['rememberMe']);
      echo $errors[0];
  </code></pre>
  
  <p>and this in the function at the end:</p>
  
  <pre><code>return $errors;
  </code></pre>
  
  <p>and I set an error like this:</p>
  
  <pre><code>$errors[] = "error goes here!";
  </code></pre>
  
  <p>Basically, when I return my array, and echo it, it gives me the following output:</p>
  
  <pre><code>Array
  </code></pre>