Q3. Write a PHP class named "Differ" which accepts two arguments as date and via method named "thediff" displays the difference via echo in years, months and days. Ps. Check DateTime::diff from...


Q2


Q3. Write a PHP class named diff(Sedate); echo "Difference: ". $interval->y. "years, ". Sinterval->m." months, ".Sinterval->d." days "; ?> "/>
Extracted text: Q3. Write a PHP class named "Differ" which accepts two arguments as date and via method named "thediff" displays the difference via echo in years, months and days. Ps. Check DateTime::diff from php.net and the sample below. diff(Sedate); echo "Difference: ". $interval->y. "years, ". Sinterval->m." months, ".Sinterval->d." days "; ?>

Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here