Case conversion functions
📖 Scenario: You are working on a simple text processing tool that changes the case of words. This is useful when you want to standardize names or titles in a list.
🎯 Goal: Build a PHP script that converts a list of words to uppercase, lowercase, and capitalized forms using PHP's case conversion functions.
📋 What You'll Learn
Create an array of words with exact values
Create a variable to hold the number of words
Use a for loop to convert each word to uppercase and store in a new array
Print the original array and the uppercase array
💡 Why This Matters
🌍 Real World
Changing the case of text is common in data cleaning, formatting user input, or preparing text for display.
💼 Career
Many programming jobs require manipulating strings and arrays, especially for web development and data processing.
Progress0 / 4 steps