strtoupper 1

strtoupper


Here is what the above code is Doing:
1. We are using the strtoupper() function to convert the string to uppercase.
2. The strtoupper() function takes a string as an argument and returns the uppercase version of the string.
3. We are passing the string “Hello samy! how are u ?” as an argument to the strtoupper() function.
4. The strtoupper() function returns the uppercase version of the string “Hello samy! how are u ?” which is “HELLO SAMY! HOW ARE U ?”
5. We are using the echo statement to print the uppercase version of the string “Hello samy! how are u ?” which is “HELLO SAMY! HOW ARE U ?”

Similar Posts