Date Addition and Subtraction in PHP

Hi guys
today i started my blog , i hope i will share lots of good experiences with you .
i start with a very handy approach that i learned today in php , adding or subtracting dates .

Date Addition and Subtraction

here is the code

echo date(‘Y-m-d’, strtotime(“+28 days”));
echo date(‘Y-m-d’, strtotime(“-28 days”));
echo date(‘Y-m-d’, strtotime(“+2 months”));
echo date(‘Y-m-d’, strtotime(“+2 years”));