strcspn($password, '1234567890') : strcspn : String PHP Source Code


PHP Source Code » String » strcspn »

 

strcspn($password, '1234567890')




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

           
       



HTML code for linking to this page:

    PHP Function Reference -> Users Code Examples / Notes - > strcspn:
  • strcspn
Follow Navioo On Twitter

PHP Source Code

 Navioo String
» strcspn