PHP does not recognise a number as lower or upper case. Rather as an element on its own.

Code:
<?php
$char = "5";
if (ctype_upper($char))
{
echo "PHP defines this string as upper-case.\n";
}
else
{
echo "PHP does not define this string as upper-case\n";
}
if (ctype_lower($char))
{
echo "PHP defines this string as lower case.\n";
}
else
{
echo "PHP does not define this string as lower-case either.\n";
}
?>


Output

PHP does not define this string as upper-case.
PHP does not define this string as lower-case either.



Newbie