Assignment:3 Set B Q.2 Solution

Q.2. Write a PHP script to perform the following operations on string : i) Convert each word of a string to Lowercase and Uppercase. ii) Find the first and last occurrence of string2 in string1.