How can I swap around / toggle the case of the characters in a string, for example:
$str = \"Hello, My Name is Tom\";
After I run the code
You'll need to iterate through the string testing the case of each character, calling strtolower() or strtoupper() as appropriate, adding the modified character to a new string.
strtolower()
strtoupper()