In a PHP document I’m developing, I have the variable w that is taken from the URL, such as “/var.php?w=madd%20meeting”.
When w is called in my script, such as print $w, I’ll get “madd meeting”.
What I want to do is derive from w another variable (say “c”) that capitalize the first letters of the words in w, so I’ll get “Madd Meeting”.
I also want to be able to derive another variable from w (say “a”) that capitalizes all letters, so I’ll get “MADD MEETING”
I saw something online similar to what I want, but it requires setting up additional documents outside of my original document (var.php), and I really don’t want to do that. Also it didn’t address all letters capitalized.
Am I wanting too much from PHP?
Thanks for any help.