Question: Create a PHP page that will process and display the following pieces of information. Use a combination of custom PHP functions and functions from the

Create a PHP page that will process and display the following pieces of information. Use a combination of custom PHP functions and functions from the PHP API as needed.

Your page should do the following:

Create a function that will accept a date input and format it into mm/dd/yyyy format.

Create a function that will accept a date input and format it into dd/mm/yyyy format to use when working with international dates.

Create a function that will accept a string input. It will do the following things to the string:

Display the number of characters in the string

Trim any leading or trailing whitespace

Display the string as all lowercase characters

Will display whether or not the string contains "College" either upper or lowercase

Create a function that will accept a number and display it as a formatted number. Use 1234567890 for your testing.

Create a function that will accept a number and display it as US currency. Use 123456 for your testing.

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!