Password strong check validation in PHP
I am trying to do something like password check script like in sent password ... I already have checks for email (for not allowed characters like this):

      public function checkEmail($email)
      {
        if (filter_var($email, FILTER_VALIDATE_EMAIL))
          return true;
        else
          return false;   
      }

SO I am looking for some password validity function for having at least alfanumerick check (number and character at least) + minimum of 8 characters and also error messages. I have search this phorum but nothing I could really use or start from :) Thank you.
Password strong check validation in PHP
===

I am trying to do something like password check script like in sent password ... I already have checks for email (for not allowed characters like this):

      public function checkEmail($email)
      {
        if (filter_var($email, FILTER_VALIDATE_EMAIL))
          return true;
        else
          return false;   
      }

SO I am looking for some password validity function for having at least alfanumerick check (number and character at least) + minimum of 8 characters and also error messages. I have search this phorum but nothing I could really use or start from :) Thank you.