note 69882 deleted from function.strtolower by bjori

From: Date: Mon, 25 Sep 2006 08:01:34 +0000
Subject: note 69882 deleted from function.strtolower by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-117556@lists.php.net to get a copy of this message
Note Submitter: Rob Reason: bad code ---- and for those of you curious how to test if a string is already all in uppercases... check this out: $string1 = "Heh"; $string2 = "HEH"; if ($string1 == strtoupper($string1)) print "$string1 is in all caps!<br>\n"; if ($string2 == strtoupper($string2)) print "$string2 is in all caps!<br>\n";

« previous php.notes (#117556) next »