WDV341 Intro PHP

Unit-3 PHP Functions

  1. Create a function that will accept a Unix Timestamp as a parameter and format it into mm/dd/yyyy format.
  2. 06/01/2025

  3. Create a function that will accept a Unix Timestamp as a parameter and format it into dd/mm/yyyy format to use when working with international dates.
  4. 01/06/2025

  5. Create a function that will accept a string parameter. It will do the following things to the string:
  6. Create a function that will accept a number parameter and display it as a formatted phone number. Use 1234567890 for your testing.
  7. (123) 456-7890

  8. Create a function that will accept a number parameter and display it as US currency with a dollar sign. Use 123456 for your testing.
  9. $123,456.00