ctype_upper():Checking for all upper case by using ctype_upper()
Checking for presence of only upper case letters by using ctype_upper() We can check a string to know if all characters present are in upper case letters or not. Return value will be TRUE ( if all are Upper case chars ) or FALSE. Here is the code using ctype_upper()
The output of above code will be
Presence of Blank spaceThis function checks for lower cases chars only so presence of any blank space will return as FALSE only.
Output will be
Presence of Special charactersPresence of Special characters will also return FALSE , only change the string part like this in above code.
Output will be
Examples multiple strings & ctype_upper()
Output is here
Subscribe to our YouTube Channel here
This article is written by plus2net.com team.
https://www.plus2net.com
![]() | ||
| ||