Count Integer

I want to validate password minimum 6 character , in these 6 characters how many numbers there are on the password inserted, for if there are less than 2 numbers the user is warned that the password isn’t correct.

You can use a regex:

Would look something like this:

$count = preg_match_all("/[0-9]/", $input_lines);