/PHP-function-for-compare-age

PHP function compare_age() for determine who is older between multiple persons inside PHP class Person

Primary LanguagePHPMIT LicenseMIT

PHP function for determine who is older

This repository contain PHP function compare_age() for determine who is older between multiple persons which is objects in PHP class Person. Then this function returns one of three messages: Person1 is older than Person2, Person1 is younger than Person2, or Person1 and Person2 are the same age.


To check how it looks, click on the preview and then on the green run button.

PREVIEW