- ini_set: documentation ( source)
- error_reporting: documentation ( source)
- date: documentation ( source)
<?php
ini_set('display_errors', TRUE);
error_reporting(E_ALL | E_STRICT);
$today = new DateTime(date("Y-m-d"));
$add_date = $today->format("Y-m-d");
$today->add(new DateInterval('P2D'));
$expiry_date = $today->format("Y-m-d");
echo $add_date . PHP_EOL;
echo $expiry_date . PHP_EOL;