Confusing Text"; echo "

ConfusingText variable: $ConfusingText

"; echo "ucfirst() function capitilizes first word in text string.
\n"; echo "

ucfirst: " . ucfirst($ConfusingText) . "

\n"; echo "lcfirst() function makes the first word in text string lowercase.
\n"; echo "

lcfirst: " . lcfirst($ConfusingText) . "

\n"; echo "ucwords() function makes the first letter of each word uppercase.
\n"; echo "

ucwords: " . ucwords($ConfusingText) . "

\n"; $LowercaseText = strtolower($ConfusingText); echo "

Lowercase Text

\n"; echo '

strtolower() applied to $ConfusingText variable: ' . $LowercaseText . "

"; echo "

ucfirst() : " . ucfirst($LowercaseText) . "

"; echo "

lcfirst() : " . lcfirst($LowercaseText) . "

"; echo "

ucwords() : " . ucwords($LowercaseText) . "

"; $StartingText = "mAdAm, i'M aDaM."; $UppercaseText = strtoupper($StartingText); $LowercaseText = strtolower($StartingText); echo "

Word Play

"; echo '$StartingText : ' . "$StartingText"; echo '

strtoupper() applied to $StartingText'; echo "

$UppercaseText

"; echo '

strtolower() applied to $StartingText'; echo "

$LowercaseText

"; echo '

ucfirst() applied to $LowercaseText'; echo "

" . ucfirst($LowercaseText) . "

"; echo '

lcfirst() applied to $UppercaseText'; echo "

" . lcfirst($UppercaseText) . "

"; $WorkingText = ucwords($LowercaseText); echo 'ucwords() function applied to $LowercaseText, which has already had ucfirst() function applied to it.'; echo "

$WorkingText

\n"; ?>