echo displaying 1 before the correct text
<p>Everything else is working correctly when I am registering a user(they are added to database and activation email is sent) however the text that I am returning from my "echo" to say 'thanks for registering' includes a 1 infront of it and I can't for the life of me work out why as I am doing the same thing in other places and it is working correctly, below is my code:</p>

<pre><code>if (empty($_POST) === false &amp;&amp; empty($errors) === true) {
    $allow_email = ($_POST['allow_email'] == 'on') ? 1 : 0;
    echo $allow_email;
    $register_data = array(
        'username'    =&gt; $_POST['username'],
        'password'    =&gt; $_POST['password'],
        'first_name'  =&gt; $_POST['first_name'],
        'last_name'   =&gt; $_POST['last_name'],
        'email'       =&gt; $_POST['email'],
        'email_code'  =&gt; md5($_POST['username'] + microtime()),
        'allow_email' =&gt; $allow_email
    );

    register_user($register_data);
    echo 'You have been registered successfully! Please check your email';
    exit();
</code></pre>

<p>And this is what is displayed on my site:</p>

<p>1You have been registered successfully! Please check your email</p>

<p>Any help would be greatly appreciated,
kindest regards,
Steven</p>
