Setting the startdate to Feb 1st, setting the enddate +1 month and using the modulus function to check for odd days might do the trick
$startdate=strtotime("2/1/2018");
$enddate=strtotime("+1 months", $startdate);
while ($startdate < $enddate)
{
if (date("d", $startdate)%2==1)
{
$display = date(" D d, M, Y ", $startdate);
var_dump($display);
}
$startdate = strtotime("+1 day", $startdate);
}
This outputs to
string(19) " Thu 01, Feb, 2018 "
string(19) " Sat 03, Feb, 2018 "
string(19) " Mon 05, Feb, 2018 "
string(19) " Wed 07, Feb, 2018 "
string(19) " Fri 09, Feb, 2018 "
string(19) " Sun 11, Feb, 2018 "
string(19) " Tue 13, Feb, 2018 "
string(19) " Thu 15, Feb, 2018 "
string(19) " Sat 17, Feb, 2018 "
string(19) " Mon 19, Feb, 2018 "
string(19) " Wed 21, Feb, 2018 "
string(19) " Fri 23, Feb, 2018 "
string(19) " Sun 25, Feb, 2018 "
string(19) " Tue 27, Feb, 2018 "