ctype_punct to check punctuation character
$input_string : String to be checked. ctype_punct() is a PHP filter function checks if only punctuation characters present in the $input_string ( nither letter, digit or blank space ). Any thing other than this if present then it returns FALSE.
Output is TRUE of all punctuation character(s) only present. ( neither letter, digit or blank space )
Output is here
Subscribe to our YouTube Channel here
This article is written by plus2net.com team.
https://www.plus2net.com
![]() |
▼ Web Forms & handling data in PHP |