This is my paragraph....
*hello.php
function get_date($type)
{
if($type == 'start_date_this_month')
{
return date('Y-m-').'01';
}
elseif($type == 'start_date_last_month')
{
return date('Y-m-', strtotime('-1 month')) . '01';
}
elseif($type == 'end_date_this_month')
{
return date('Y-m-t');
}
elseif($type == 'end_date_last_month')
{
$dt_last_mo = date('Y-m-d', strtotime('-1 month')); // date of last month
return date('Y-m-t', strtotime($dt_last_mo));
}
}