The lc()
function converts a string to lowercase.
The following figure shows a visual representation of the lc()
function.
lc(string)
As a parameter, the lc()
function requires a string that is to be converted to lowercase.
The lc()
function returns a string that is converted to lowercase.
If the
string
parameter is omitted, then it returns''
.
#stringprint "lc('EDUCATIVE') : ".lc('EDUCATIVE'). "\n";#string with numberprint "lc('EDUCATIVE09') : ".lc('EDUCATIVE09'). "\n";#string is omittedprint "lc() : ".lc(). "\n";