Its syntax is: int strcspn (string str1, string str2) <? $password = "12345"; if (strcspn($password, "1234567890") == 0) : print "Password cannot consist solely of numbers!"; endif; ?>