Mwnci swapcase() Function

Syntax

swapcase(string)

Description

The swapcase() function returns a string where all the upper case letters are lower case and vice versa.

Example

include("string")
println(swapcase("foobar"))
println(swapcase("FOOBAR"))
println(swapcase("fooBAR"))


FOOBAR
foobar
FOObar