d
Amit DhamuSoftware Engineer
 

Check If Uppercase or Lowercase

1 minute read 00000 views
<?php
    if (ctype_upper($string)) {
        // String is all uppercase
    } else if (ctype_lower($string)) {
        // String is all lowercase
    } else {
        // String is neither all uppercase or all lowercase
    }
?>