• PHP > vérifier des données

      ctype_alnum()

      check all characters of given string/text are alphanumeric or not. If all characters are alphanumeric then return TRUE, otherwise return FALSE.

       

      bool ctype_alnum ($text)

       

      Geeks // true
      %%%Contribute_article on GFG!!! // false
      geek@gmail.com // false
      2018 // true
      GFG2018 // true
      a b c // false
      @!$%^&*()|2018' // false

       

 

Aucun commentaire

 

Laissez un commentaire