Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 11 The Database For Big Data And Analytics

Authors: Cristian Molaro, Surekha Parekh, Terry Purcell, Julian Stuhler

1st Edition

1583473858, 978-1583473856

More Books

Students also viewed these Databases questions