4-1 PHP Functions

1. Create a function that will accept a timestamp and format it into mm/dd/yyyy format.

10/05/2024

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

05/10/2024

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

DMACC West Campus is nice
Number of characters: 25
Trim: DMACC West Campus is nice
Lowercase: dmacc west campus is nice
Does string contain DMACC: DMACC Found!

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

123-456-7890

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

I have $123,456.00