Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

hi guys someone can help me with this code

  1. Create a Class MyTime that has Hours, minutes and seconds and a string Name that contains “Time”
  2. Create a Class CivilianTime that has a string AMPM and it is inherited from MyTime and a string Name that contains “Civilian Time”
  3. Create a Class ZonedTime that has a 3 letter string for the time zone and it is inherited from CivilianTime and a string Name that contains “Zoned Time”
  4. Create a class MyDate with Day, Month and Year
  5. Create an HTML form that has input values for Hour, Minute, Second , Day, Month, Year and Zone
  6. As a result of submit a PHP program should run and validate the values in the form, the values cannot be empty and they must be valid, for example Day cannot be more than 31 and cannot be negative, you should check everything including leap year and February 10, 2017. If there is an error a proper error message should be displayed
  7. An object out of MyTime, CivilianTime and ZonedTime must be created and the correct values taken from the form must be kept in these objects
  8. If the hour is more than 12 it will be PM in the CivilianTime, otherwise it is AM
  9. Create an array of MyTime and assign three elements in it to MyTime, CivilianTime and ZonedTime objects
  10. In a loop print out the name of the objects and value of their data members.