title: How to check whether every character is alpha-numeric in PHP?
body: <pre><code>preg_match_all("/[^A-Za-z0-9]/",$new_password,$out);
  </code></pre>
  
  <p>The above only checks the 1st character, how to check whether all are alpha-numeric?</p>