title: how to use strlen and check for minimum and maximum word count
body: <p>I am trying to use the code below and not sure if the second syntax will work as well. Is there also a way to check to see if an user has typed consecutive letters such as "aaaaaaaaaabbbbbbbbbbbbb" etc?</p>
  
  <pre><code> if(strlen($joined)&lt;200 || strlen($joined) &gt; 500) {
  
                header("Location: index.php?reply_registration_form=invalidlength");
          exit(); 
  </code></pre>
  
  <p>Can I also do this?</p>
  
  <pre><code>  if(strlen($joined)&lt;200 || $joined &gt; 500) {
  
                header("Location: index.php?reply_registration_form=invalidlength");
          exit();
  </code></pre>