PHP Check Uppercase

Check Uppercase or not in PHP

This code will check whether the given String is uppercase or not with the help of this Regular Expression.

Regex to Check Uppercase

/^[A-Z]+$/
//source code CheckUppercase.php

function checkUppercase($val){
return (bool)preg_match("/^[A-Z]+$/", $val);
}


Related Topic JSTL tag Choose When Example Code
How to Change Paypal Account Password
How to Setting Up a Internal LAN Local Area Network
Short Notes on Point-to-Point Protocol
Benefits of Hardening the Linux Desktop

nScraps.com 2011   Privacy Policy  Terms of Service  Feedback