Confusing Text

ConfusingText variable: tHIS seNTEnCE iS HArD to rEAD.

ucfirst() function capitilizes first word in text string.

ucfirst: THIS seNTEnCE iS HArD to rEAD.

lcfirst() function makes the first word in text string lowercase.

lcfirst: tHIS seNTEnCE iS HArD to rEAD.

ucwords() function makes the first letter of each word uppercase.

ucwords: THIS SeNTEnCE IS HArD To READ.

Lowercase Text

strtolower() applied to $ConfusingText variable: this sentence is hard to read.

ucfirst() : This sentence is hard to read.

lcfirst() : this sentence is hard to read.

ucwords() : This Sentence Is Hard To Read.

Word Play

$StartingText : mAdAm, i'M aDaM.

strtoupper() applied to $StartingText

MADAM, I'M ADAM.

strtolower() applied to $StartingText

madam, i'm adam.

ucfirst() applied to $LowercaseText

Madam, i'm adam.

lcfirst() applied to $UppercaseText

mADAM, I'M ADAM.

ucwords() function applied to $LowercaseText, which has already had ucfirst() function applied to it.

Madam, I'm Adam.