This may or may not be a stupid question. Is there a function that will tell me if a string is uppercase or not? If there isn't is there any easy way to code this?
Just to test if a string is all upper case use:
if ($string = strtoupper($string))
will always test true, you need two equals signs:
if ($string == strtoupper($string))
Very true. For some reason I always do that. But it's easy to catch. ;->
Hey, why do you think it was so easy for me to catch. I have to fix my own crap about 1 time in 3... :)