Practical - 5 IWD
Aim 1(a): Check if the given string is in lowercase
Program
-
strtolower()converts a string to lowercase. -
If the original string and lowercase string are the same, it means the string is already in lowercase.
Aim 1(b): Replace a given word from the given string
Program
-
str_replace()replaces a word or part of a string with another word. -
The function does not change the original string; it returns a new one.
Comments
Post a Comment