Home / PHP Tips Generated By ChatGPT / Converting Strings to Upper or Lower Case in PHP Convert strings to all uppercase or lowercase. Source Code echo strtoupper("hello, world!"); // Outputs: HELLO, WORLD! echo strtolower("HELLO, WORLD!"); // Outputs: hello, world!