Question: Create the following functions in PHP. a) Create a function called sleepyCapitalizer to randomly capitalize any of the characters in the string. (4) For example

 Create the following functions in PHP. a) Create a function called

Create the following functions in PHP. a) Create a function called sleepyCapitalizer to randomly capitalize any of the characters in the string. (4) For example sleepyCapitalizer("love php') can return "LOve pHp", "LOVE b) Create function infoUni which takes the name of a university as input and returns the city and country in which the university is located. (3) The details of the universities are stored in a file in the following format university name city country university name city country - c) Create a function called swaplnout that takes an array as input and exchanges the innermost elements with the arrays outermost elements. For example if the array is (2,3,4,5 if it is say (1,2,3,3,5,1) then the result is (3,2,1,1,5,3). The function should swap the elements if and only if the array contains an even number of elements otherwise the elements

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!