title: How can I make sure it checks if there is a minimum of 30 characters in an input?
body: <p>I would like to check in PHP that if you enter something you need at least 30 characters. </p>
  
  <p>If I run it now I can just keep going if I type nr: 31 for example.                        </p>
  
  <pre><code>if(empty($_POST['vraag'])) { 
      $vraagErr = 'Verplicht!'; 
  } else { 
      $vraag = test_input($_POST['vraag']);
  
      if($_POST['vraag']&lt;"30") { //This is the if instruction 
          $vraagErr = 'U moet meer dan 30 karakters invullen'; 
      }
  }
  </code></pre>