title: Why does this PHP code just echo "Array"?
body: <p>Here is my code:</p>
  
  <pre><code>if(isset($_POST['check']) AND $_POST['check'] == 'First') {
    $errormessage = array();
  
    if(empty($_POST['full_name']) || strlen($_POST['full_name']) &lt; 4) { 
       $errormessage[] = "FEL - Vänligen ange fullständiga namn. Please enter atleast 3 or more characters for your name";
    }
    if(!isEmail($_POST['usr_email'])) {
       $errormessage[] = "FEL - Invalid email address.";
    }
    if(empty($errormessage)) {
       echo 1;
    } else { 
       echo $errormessage; // &lt;--
    }
  }
  </code></pre>
  
  <p>When <code>echo $errormessage</code> runs it outputs <code>Array</code>. What am I doing wrong?</p>