PHP condition for matching exact characters string
<p>I have the following code which makes sure the text entered in the "captcha" text box is at least 3 characters long or else an error is received. How do i set it so the text entered has to be "abcd" or else an error occurs?</p>

<pre><code>  if(strlen($_POST['captcha']) &lt; 3) {
    $error_message .= 'Please ensure the captcha entered is at least 3 characters long';
</code></pre>
