Returns true if the given string is lower case, false otherwise.

Convert the given string to lower case, using strtolower and compare it to the original.

代码实现

function isLowerCase($string)
{
  return $string === strtolower($string);
}

使用样例

isLowerCase('Morning shows the day!'); // false
isLowerCase('hello'); // true