strspn.php
<?php $password = "1111111"; if (strspn($password, "1234567890") == strlen($password)) echo "The password cannot consist solely of numbers!"; ?>