Mega Code Archive

 
Categories / Php / Strings
 

Strcspn demo

<?php    $password = "a12345";    if (strcspn($password, "1234567890") == 0) {       print "Password cannot consist solely of numbers! ";    } ?>