Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started